Skip to content

Commit eb4c604

Browse files
Update mypy/messages.py
Co-authored-by: Ali Hamdan <[email protected]>
1 parent 87e5d6c commit eb4c604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,8 +2520,8 @@ def quote_type_string(type_string: str) -> str:
25202520
if (
25212521
type_string in ["Module", "overloaded function", "<deleted>"]
25222522
or type_string.startswith("Module ")
2523-
or type_string.startswith(("<tuple ", "<union "))
2524-
and type_string.endswith(" item>")
2523+
or type_string.startswith(("<tuple: ", "<union: "))
2524+
and type_string.endswith(" items>")
25252525
or type_string.endswith("?")
25262526
):
25272527
# Messages are easier to read if these aren't quoted. We use a

0 commit comments

Comments
 (0)