Skip to content

Commit a047036

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

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

mypyc/irbuild/for_helpers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ def sequence_from_generator_preallocate_helper(
242242
rtype = builder.node_type(sequence_expr)
243243
if not (is_sequence_rprimitive(rtype) or isinstance(rtype, RTuple)):
244244
return None
245-
245+
246246
if isinstance(rtype, RTuple):
247247
# If input is RTuple, box it to tuple_rprimitive for generic iteration
248248
# TODO: this can be optimized a bit better with an unrolled ForRTuple helper
249249
proper_type = get_proper_type(builder.types[sequence_expr])
250250
assert isinstance(proper_type, TupleType), proper_type
251-
251+
252252
# the for_loop_helper_with_index crashes for empty tuples, bail out
253253
if not proper_type.items:
254254
return None
@@ -268,13 +268,13 @@ def sequence_from_generator_preallocate_helper(
268268
)
269269
for i, typ in enumerate(proper_types)
270270
]
271-
271+
272272
items = list(map(builder.add, get_item_ops))
273273
sequence = builder.new_tuple(items, line)
274-
274+
275275
else:
276276
sequence = builder.accept(sequence_expr)
277-
277+
278278
length = get_expr_length_value(builder, sequence_expr, sequence, line, use_pyssize_t=True)
279279

280280
target_op = empty_op_llbuilder(length, line)

0 commit comments

Comments
 (0)