Skip to content

Commit fb5c2f4

Browse files
Update ops.py
1 parent b5a2d1a commit fb5c2f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/ir/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def __init__(self, src: Value, index: int, line: int = -1, *, borrow: bool = Fal
10491049
self.index = index
10501050
assert isinstance(src.type, RTuple), "TupleGet only operates on tuples"
10511051
src_len = len(src.type.types)
1052-
assert -src_len <= index <= src_len - 1, f"source {src} index {index}"
1052+
assert -src_len <= index <= src_len - 1, f"source type: {src.type}\nindex: {index}"
10531053
self.type = src.type.types[index]
10541054
self.is_borrowed = borrow
10551055

0 commit comments

Comments
 (0)