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 3e31189 commit d38d4b4Copy full SHA for d38d4b4
mypyc/irbuild/for_helpers.py
@@ -1203,7 +1203,10 @@ def get_expr_length(expr: Expression) -> int | None:
1203
return len(expr.node.final_value)
1204
elif isinstance(expr, CallExpr) and isinstance(callee := expr.callee, NameExpr):
1205
fullname = callee.fullname
1206
- if fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate") and len(expr.args) == 1:
+ if (
1207
+ fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate")
1208
+ and len(expr.args) == 1
1209
+ ):
1210
return get_expr_length(expr.args[0])
1211
elif fullname == "builtins.map" and len(expr.args) == 2:
1212
return get_expr_length(expr.args[1])
0 commit comments