We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9297b7 commit 778e51fCopy full SHA for 778e51f
mypyc/irbuild/expression.py
@@ -9,7 +9,7 @@
9
import math
10
from collections.abc import Sequence
11
from functools import partial
12
-from typing import Callable, Union
+from typing import Callable, Union, cast
13
14
from mypy.nodes import (
15
ARG_NAMED,
@@ -1029,7 +1029,9 @@ def constant_fold_expr_or_tuple(
1029
return value
1030
if not isinstance(expr, TupleExpr):
1031
return None
1032
- folded = tuple(map(partial(constant_fold_expr_or_tuple, builder), expr.items))
+ folded: ConstantValueTuple = tuple(
1033
+ map(partial(constant_fold_expr_or_tuple, builder), expr.items)
1034
+ )
1035
return folded if None not in folded else None
1036
1037
result = {}
0 commit comments