Skip to content

Commit 23aa56d

Browse files
Update constant_fold.py
1 parent 37821b0 commit 23aa56d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from __future__ import annotations
1212

13-
from typing import Final, Union
13+
from typing import Any, Final, Union
1414

1515
from mypy.constant_fold import constant_fold_binary_op, constant_fold_unary_op
1616
from mypy.nodes import (
@@ -32,7 +32,7 @@
3232
from mypyc.irbuild.util import bytes_from_str
3333

3434
# All possible result types of constant folding
35-
ConstantValue = Union[int, float, complex, str, bytes, tuple, dict]
35+
ConstantValue = Union[int, float, complex, str, bytes, tuple[Any, ...], dict[Any, Any]]
3636
CONST_TYPES: Final = (int, float, complex, str, bytes, tuple, dict)
3737

3838

0 commit comments

Comments
 (0)