Skip to content

Commit f680098

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
9595
proper_type = get_proper_type(expr_type)
9696
if isinstance(proper_type, TupleType):
9797
types = list(map(get_proper_type, proper_type.items))
98-
if all(isinstance(i, LiteralType) and isinstance(i.value, str) for i in types):
98+
if all(
99+
isinstance(i, LiteralType) and isinstance(i.value, str) for i in types
100+
):
99101
return folded_callee.join(i.value for i in types) # type: ignore [attr-defined]
100102

101103
# builtins.bytes methods

0 commit comments

Comments
 (0)