Skip to content

Commit 175d5d4

Browse files
Update messages.py
1 parent a2605ad commit 175d5d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/messages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import mypy.typeops
2323
from mypy import errorcodes as codes, message_registry
24+
from mypy.constant_fold import constant_fold_expr
2425
from mypy.erasetype import erase_type
2526
from mypy.errorcodes import ErrorCode
2627
from mypy.errors import (
@@ -807,7 +808,7 @@ def incompatible_argument(
807808
)
808809
arg_label = f'"{arg_name}"'
809810
if isinstance(outer_context, IndexExpr) and isinstance(
810-
index := constant_fold_expr(outer_context.index, "unused"), str
811+
index := constant_fold_expr(outer_context.index, "<unused>"), str
811812
):
812813
msg = 'Value of "{}" has incompatible type {}; expected {}'.format(
813814
index,

0 commit comments

Comments
 (0)