Skip to content

Commit b663a4d

Browse files
committed
Merge branch 'preallocate-helper-rtuple' of https://github.com/BobTheBuidler/mypy into preallocate-helper-rtuple
2 parents 7cf5a7d + dbaebcc commit b663a4d

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
@@ -171,7 +171,7 @@ def for_loop_helper_with_index(
171171
body_insts: a function that generates the body of the loop.
172172
It needs a index as parameter.
173173
"""
174-
assert is_sequence_rprimitive(expr_reg.type) or isinstance(expr_reg.type, RTuple)
174+
assert is_sequence_rprimitive(expr_reg.type)
175175
target_type = builder.get_sequence_type(expr)
176176

177177
body_block = BasicBlock()

0 commit comments

Comments
 (0)