Skip to content

Commit 6ca315e

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
9797
if isinstance(proper_type, TupleType):
9898
values: list[str] = []
9999
for item_type in map(try_getting_literal, proper_type.items):
100-
if not (isinstance(item_type, LiteralType) and isinstance(item_type.value, str)):
100+
if not (
101+
isinstance(item_type, LiteralType)
102+
and isinstance(item_type.value, str)
103+
):
101104
return None
102105
values.append(item_type.value)
103106
return folded_callee.join(values)

0 commit comments

Comments
 (0)