Skip to content

Commit 4bcd1b9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 056994c commit 4bcd1b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
9393
return folded_callee.join(folded_items) # type: ignore [arg-type]
9494
expr_type = builder.types[arg]
9595
if isinstance(expr_type, TupleType) and all(
96-
isinstance(i, LiteralType) and isinstance(i.value, str) for i in expr_type.items
96+
isinstance(i, LiteralType) and isinstance(i.value, str)
97+
for i in expr_type.items
9798
):
9899
return folded_callee.join(i.value for i in expr_type.items)
99100

0 commit comments

Comments
 (0)