Skip to content

Commit 89a078b

Browse files
committed
fix: assert
1 parent bfe24e3 commit 89a078b

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
@@ -1218,7 +1218,7 @@ def get_expr_length_value(
12181218
builder: IRBuilder, expr: Expression, expr_reg: Value, line: int, use_pyssize_t: bool
12191219
) -> Value:
12201220
rtype = builder.node_type(expr)
1221-
assert is_sequence_rprimitive(rtype), rtype
1221+
assert is_sequence_rprimitive(rtype) or isinstance(rtype, RTuple), rtype
12221222
length = get_expr_length(expr)
12231223
if length is None:
12241224
# We cannot compute the length at compile time, so we will fetch it.

0 commit comments

Comments
 (0)