Skip to content

Commit 376151d

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def set_item_index(item_index: Value) -> None:
248248
builder, gen.indices[0], sequence_expr, sequence, set_item_index, gen.line, length
249249
)
250250
return target_op
251-
251+
252252
expr_length = get_expr_length(sequence_expr)
253253
if expr_length is not None:
254254
item_index = Register(int_rprimitive)
@@ -258,14 +258,14 @@ def set_item_noindex() -> None:
258258
e = builder.accept(gen.left_expr)
259259
builder.call_c(set_item_op, [target_op, item_index, e], gen.line)
260260
builder.assign(
261-
item_index,
262-
builder.binary_op(item_index, Integer(1), "+", gen.line),
263-
gen.line,
261+
item_index, builder.binary_op(item_index, Integer(1), "+", gen.line), gen.line
264262
)
265263

266264
length = Integer(expr_length, c_pyssize_t_rprimitive, gen.line)
267265
target_op = empty_op_llbuilder(length, gen.line)
268-
for_loop_helper(builder, gen.indices[0], sequence_expr, set_item_noindex, None, False, gen.line, )
266+
for_loop_helper(
267+
builder, gen.indices[0], sequence_expr, set_item_noindex, None, False, gen.line
268+
)
269269
return target_op
270270
return None
271271

0 commit comments

Comments
 (0)