Skip to content

Commit f251e0c

Browse files
Update errors.py: mention what codes are actually ignored
1 parent feeb3f0 commit f251e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def add_error_info(self, info: ErrorInfo) -> None:
645645
if ignored_codes and info.code:
646646
# Something is ignored on the line, but not this error, so maybe the error
647647
# code is incorrect.
648-
msg = f'Error code "{info.code.code}" not covered by "type: ignore" comment'
648+
msg = f'Error code "{info.code.code}" not covered by "type: ignore" comment ignoring {ignored_codes}'
649649
if info.code in original_error_codes:
650650
# If there seems to be a "type: ignore" with a stale error
651651
# code, report a more specific note.

0 commit comments

Comments
 (0)