Skip to content

Commit fa21d27

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mypyc/irbuild/expression.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,11 @@ def try_specialize_in_expr(
798798
proper_type = get_proper_type(builder.types[rhs])
799799
items = [
800800
# TODO: should we use object_rprimitive? prob not, what do?
801-
LoadLiteral(typ.value, object_rprimitive) if isinstance(typ, LiteralType) else builder.add(TupleGet(tuple_val, i))
801+
(
802+
LoadLiteral(typ.value, object_rprimitive)
803+
if isinstance(typ, LiteralType)
804+
else builder.add(TupleGet(tuple_val, i))
805+
)
802806
for i, typ in enumerate(map(try_getting_literal, proper_type.items))
803807
]
804808

0 commit comments

Comments
 (0)