Skip to content

Commit 1d9620d

Browse files
committed
Print error code for the MAYBE_UNRECOGNIZED_STR_TYPEFORM note
1 parent d1aafcd commit 1d9620d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mypy/errors.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020

2121
# Show error codes for some note-level messages (these usually appear alone
2222
# and not as a comment for a previous error-level message).
23-
SHOW_NOTE_CODES: Final = {codes.ANNOTATION_UNCHECKED, codes.DEPRECATED}
23+
SHOW_NOTE_CODES: Final = {
24+
codes.ANNOTATION_UNCHECKED,
25+
codes.DEPRECATED,
26+
codes.MAYBE_UNRECOGNIZED_STR_TYPEFORM,
27+
}
2428

2529
# Do not add notes with links to error code docs to errors with these codes.
2630
# We can tweak this set as we get more experience about what is helpful and what is not.

0 commit comments

Comments
 (0)