Skip to content

Commit 063831d

Browse files
committed
Merge branch 'dict-literals' of https://github.com/BobTheBuidler/mypy into dict-literals
2 parents a46630d + 35d7250 commit 063831d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/irbuild/expression.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,9 @@ def constant_fold_expr_or_tuple(
10361036
if not isinstance(expr, TupleExpr):
10371037
return None
10381038
folded = tuple(
1039-
const for const in map(partial(constant_fold_expr_or_tuple, builder), expr.items) if const is not None
1039+
const
1040+
for const in map(partial(constant_fold_expr_or_tuple, builder), expr.items)
1041+
if const is not None
10401042
)
10411043
return folded if len(folded) == len(expr.items) else None
10421044

0 commit comments

Comments
 (0)