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 4940cfc commit 5017979Copy full SHA for 5017979
mypyc/irbuild/for_helpers.py
@@ -1201,7 +1201,11 @@ def get_expr_length(expr: Expression) -> int | None:
1201
and expr.node.has_explicit_value
1202
):
1203
return len(expr.node.final_value)
1204
- elif isinstance(expr, CallExpr) and isinstance(callee := expr.callee, NameExpr) and all(kind == ARG_POS for kind in expr.arg_kinds):
+ elif (
1205
+ isinstance(expr, CallExpr)
1206
+ and isinstance(callee := expr.callee, NameExpr)
1207
+ and all(kind == ARG_POS for kind in expr.arg_kinds)
1208
+ ):
1209
fullname = callee.fullname
1210
if (
1211
fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate")
0 commit comments