We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbbba52 commit 5fc0ccdCopy full SHA for 5fc0ccd
mypy/errors.py
@@ -509,7 +509,7 @@ def report(
509
line: line number of error
510
column: column number of error
511
message: message to report
512
- code: error code (defaults to 'misc'; not shown for notes)
+ code: error code (not shown for notes), may be None
513
blocker: if True, don't continue analysis after this error
514
severity: 'error' or 'note'
515
file: if non-None, override current file as context
@@ -548,7 +548,6 @@ def report(
548
end_line = line
549
550
code = code or (parent_error.code if parent_error else None)
551
- code = code or (codes.MISC if not blocker else None)
552
553
info = ErrorInfo(
554
import_ctx=self.import_context(),
0 commit comments