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 d38d4b4 commit 4940cfcCopy full SHA for 4940cfc
mypyc/irbuild/for_helpers.py
@@ -1201,7 +1201,7 @@ 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):
+ elif isinstance(expr, CallExpr) and isinstance(callee := expr.callee, NameExpr) and all(kind == ARG_POS for kind in expr.arg_kinds):
1205
fullname = callee.fullname
1206
if (
1207
fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate")
0 commit comments