We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684e800 commit c792337Copy full SHA for c792337
mypyc/irbuild/for_helpers.py
@@ -1212,7 +1212,7 @@ def get_expr_length(expr: Expression) -> int | None:
1212
return min(arg_lengths)
1213
elif fullname == "builtins.range" and all(isinstance(arg, IntExpr) for arg in expr.args):
1214
return len(range(*(arg.value for arg in expr.args)))
1215
-
+
1216
# TODO: extend this, passing length of listcomp and genexp should have worthwhile
1217
# performance boost and can be (sometimes) figured out pretty easily. set and dict
1218
# comps *can* be done as well but will need special logic to consider the possibility
0 commit comments