Skip to content

Commit cb38f60

Browse files
Update checkstrformat.py
1 parent d30b2b5 commit cb38f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkstrformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ def check_expr(expr: Expression) -> None:
10071007
):
10081008
self.msg.requires_int_or_single_byte(context)
10091009
else:
1010-
if isinstance(folded := constant_fold_expr(expr, "unused"), str):
1010+
if isinstance(folded := constant_fold_expr(expr, "<unused>"), str):
10111011
if len(folded) != 1:
10121012
self.msg.requires_int_or_char(context)
10131013
elif isinstance(expr, BytesExpr):

0 commit comments

Comments
 (0)