Skip to content

Commit 62adcfa

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2ac9a73 commit 62adcfa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,13 @@ def make_for_loop_generator(
443443
target_type = builder.get_sequence_type(expr)
444444
for_list = ForSequence(builder, index, body_block, loop_exit, line, nested)
445445

446-
if isinstance(expr, IndexExpr) and isinstance(expr.index, SliceExpr) and all(
447-
s is None or isinstance(constant_fold_expr(builder, s), int)
448-
for s in (expr.index.start, expr.index.stop, expr.index.step)
446+
if (
447+
isinstance(expr, IndexExpr)
448+
and isinstance(expr.index, SliceExpr)
449+
and all(
450+
s is None or isinstance(constant_fold_expr(builder, s), int)
451+
for s in (expr.index.start, expr.index.stop, expr.index.step)
452+
)
449453
):
450454
for_list.init(
451455
builder.accept(expr.base),

0 commit comments

Comments
 (0)