Skip to content

Commit 3daeecd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8d74068 commit 3daeecd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,12 @@ def sequence_from_generator_preallocate_helper(
243243
# TODO: this can be optimized a bit better with an unrolled ForRTuple helper
244244
proper_type = get_proper_type(builder.types[sequence_expr])
245245
assert isinstance(proper_type, TupleType), proper_type
246-
246+
247247
items = [
248248
builder.add(
249249
LoadLiteral(typ.value, object_rprimitive)
250-
if isinstance(typ, LiteralType) and isinstance(typ.value, (int, str, bool, float))
250+
if isinstance(typ, LiteralType)
251+
and isinstance(typ.value, (int, str, bool, float))
251252
else TupleGet(sequence, i, line)
252253
)
253254
for i, typ in enumerate(proper_type.items)

0 commit comments

Comments
 (0)