Skip to content

Commit 3ff12ec

Browse files
Update constant_fold.py
1 parent a62ef3a commit 3ff12ec

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
@@ -38,7 +38,7 @@
3838
ConstantValue = Union[int, float, complex, str, bytes]
3939
CONST_TYPES: Final = (int, float, complex, str, bytes)
4040

41-
Expr = TypeVar("Expr", Expression)
41+
Expr = TypeVar("Expr", bound=Expression)
4242

4343

4444
def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue | None:

0 commit comments

Comments
 (0)