Skip to content

Commit 0d7b234

Browse files
committed
fix mypy errs
1 parent 7f8bb37 commit 0d7b234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/expression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
)
8686
from mypyc.irbuild.ast_helpers import is_borrow_friendly_expr, process_conditional
8787
from mypyc.irbuild.builder import IRBuilder, int_borrow_friendly_op
88-
from mypyc.irbuild.constant_fold import constant_fold_expr
88+
from mypyc.irbuild.constant_fold import ConstantValue, constant_fold_expr
8989
from mypyc.irbuild.for_helpers import (
9090
comprehension_helper,
9191
raise_error_if_contains_unreachable_names,
@@ -1017,7 +1017,7 @@ def _visit_tuple_display(builder: IRBuilder, expr: TupleExpr) -> Value:
10171017

10181018
def dict_literal_values(
10191019
builder: IRBuilder, items: Sequence[tuple[Expression | None, Expression]], line: int
1020-
) -> dict | None:
1020+
) -> dict[ConstantValue, ConstantValue] | None:
10211021
"""Try to extract a constant dict from a dict literal, recursively staticizing nested dicts.
10221022
10231023
If all keys and values are deeply immutable and constant (including nested dicts as values),

0 commit comments

Comments
 (0)