Skip to content

Commit f20d60b

Browse files
remove second check
1 parent b1ad8b0 commit f20d60b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,9 +1232,6 @@ def get_expr_length(builder: IRBuilder, expr: Expression) -> int | None:
12321232
rtype = builder.node_type(expr)
12331233
if isinstance(rtype, RTuple):
12341234
return len(rtype.types)
1235-
proper_type = get_proper_type(builder.types[expr])
1236-
if isinstance(proper_type, TupleType):
1237-
return len(proper_type.items)
12381235
return None
12391236

12401237

0 commit comments

Comments
 (0)