Skip to content

Commit c8880ac

Browse files
Update for_helpers.py
1 parent 19ea1df commit c8880ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 2 additions & 2 deletions
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), expr_reg
174+
assert is_sequence_rprimitive(expr_reg.type), (expr_reg, expr_reg.type)
175175
target_type = builder.get_sequence_type(expr)
176176

177177
body_block = BasicBlock()
@@ -808,7 +808,7 @@ class ForSequence(ForGenerator):
808808
def init(
809809
self, expr_reg: Value, target_type: RType, reverse: bool, length: Value | None = None
810810
) -> None:
811-
assert is_sequence_rprimitive(expr_reg.type), expr_reg
811+
assert is_sequence_rprimitive(expr_reg.type), (expr_reg, expr_reg.type)
812812
builder = self.builder
813813
# Record a Value indicating the length of the sequence, if known at compile time.
814814
self.length = length

0 commit comments

Comments
 (0)