Skip to content

Commit 621f95d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ae85fd0 commit 621f95d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/irbuild/expression.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,9 @@ def transform_index_expr(builder: IRBuilder, expr: IndexExpr) -> Value:
590590

591591
base = builder.accept(expr.base, can_borrow=can_borrow_base)
592592

593-
if isinstance(base.type, RTuple) and isinstance(folded_index := constant_fold_expr(builder, index), int):
593+
if isinstance(base.type, RTuple) and isinstance(
594+
folded_index := constant_fold_expr(builder, index), int
595+
):
594596
return builder.add(TupleGet(base, folded_index, expr.line))
595597

596598
if isinstance(index, SliceExpr):

0 commit comments

Comments
 (0)