Skip to content

Commit 885d785

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3f11f26 commit 885d785

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/ir/ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,9 @@ def __init__(self, src: Value, index: int, line: int = -1, *, borrow: bool = Fal
10531053
self.index = index
10541054
if index < 0:
10551055
self.index += src_len
1056-
assert self.index <= src_len - 1, f"Index out of range.\nsource type: {src.type}\nindex: {index}"
1056+
assert (
1057+
self.index <= src_len - 1
1058+
), f"Index out of range.\nsource type: {src.type}\nindex: {index}"
10571059
self.type = src.type.types[index]
10581060
self.is_borrowed = borrow
10591061

0 commit comments

Comments
 (0)