Skip to content

Commit 589497b

Browse files
committed
feat: handle star expr
1 parent 231d764 commit 589497b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ def get_expr_length(expr: Expression) -> int | None:
12011201
return other + sum(stars) # type: ignore [arg-type]
12021202
elif isinstance(expr, StarExpr):
12031203
# star expression needs some extra logic but that can come later, this is good for now
1204-
pass
1204+
return get_expr_length(expr.expr)
12051205
# TODO: extend this, unrolling should come with a good performance boost
12061206
return None
12071207

0 commit comments

Comments
 (0)