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 9be5dc3 commit 57b5081Copy full SHA for 57b5081
mypy/errors.py
@@ -551,8 +551,13 @@ def report(
551
552
code = code or (parent_error.code if parent_error else None)
553
if code is None:
554
- if blocker or (severity == "note"):
+ if blocker:
555
code = None # do we even need to do this for blockers?
556
+ elif (severity == "note"):
557
+ if parent_error is not None:
558
+ code = parent_error.code # this might be None, btw
559
+ else:
560
+ code = None
561
else:
562
code = codes.MISC
563
0 commit comments