Skip to content

Commit c968167

Browse files
committed
Update constant_fold.py
1 parent 28614c2 commit c968167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def constant_fold_binary_op_extended(
103103
104104
mypy cannot use constant folded bytes easily so it's simpler to only support them in mypyc.
105105
"""
106-
if not isinstance(left, bytes) and not isinstance(right, bytes):
106+
if not isinstance(left, (bytes, tuple, dict)) and not isinstance(right, (bytes, tuple, dict)):
107107
return constant_fold_binary_op(op, left, right)
108108

109109
if op == "+" and isinstance(left, bytes) and isinstance(right, bytes):

0 commit comments

Comments
 (0)