Skip to content

Commit 2b0407b

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def make_for_loop_generator(
455455

456456
if isinstance(expr, CallExpr) and isinstance(expr.callee, RefExpr):
457457
num_args = len(expr.args)
458-
458+
459459
if is_range_ref(expr.callee) and set(expr.arg_kinds) == {ARG_POS}:
460460
if num_args <= 2 or (num_args == 3 and builder.extract_int(expr.args[2]) is not None):
461461
# Special case "for x in range(...)".
@@ -470,12 +470,12 @@ def make_for_loop_generator(
470470
start_reg = builder.accept(expr.args[0])
471471
end_reg = builder.accept(expr.args[1])
472472
step = 1 if num_args == 2 else builder.extract_int(expr.args[2])
473-
473+
474474
if step:
475475
for_range = ForRange(builder, index, body_block, loop_exit, line, nested)
476476
for_range.init(start_reg, end_reg, step)
477477
return for_range
478-
478+
479479
# If we could not constant fold `step`, we just fallback to calling stdlib implementation
480480

481481
elif (

0 commit comments

Comments
 (0)