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 1e8c7fe commit 7faccbcCopy full SHA for 7faccbc
mypyc/irbuild/for_helpers.py
@@ -22,6 +22,7 @@
22
NameExpr,
23
RefExpr,
24
SetExpr,
25
+ StarExpr,
26
StrExpr,
27
TupleExpr,
28
TypeAlias,
@@ -1194,7 +1195,7 @@ def get_expr_length(expr: Expression) -> int | None:
1194
1195
elif isinstance(expr, (ListExpr, TupleExpr)):
1196
# if there are no star expressions, or we know the length of them,
1197
# we know the length of the expression
- stars = [get_expr_length(i, context) for i in expr.items if isinstance(i, StarExpr)]
1198
+ stars = [get_expr_length(i) for i in expr.items if isinstance(i, StarExpr)]
1199
if None not in stars:
1200
other = sum(not isinstance(i, StarExpr) for i in expr.items)
1201
return other + sum(stars)
0 commit comments