Closed tcobbs-bentley closed 1 year ago
Duplicate of #11098
(It's already fixed on mypy master
; the fix will be included in the next release, mypy 1.0.)
Sorry, I didn't search closed issues.
No worries! Follow #13685 for updates on when the next release will be coming.
Bug Report The following code produces an error when using mypy as a linter in Visual Studio Code:
(Using pylint as a linter, the above code does not produce an errror.)
The following (equivalent, AFAIK) code does not produce an error when using mypy as a linter:
For reasons that aren't really clear, the following code does not produce an error (even though it seems similar to the code that produces an error):
For reference, the error (in Visual Studio Code) is this:
(A clear and concise description of what the bug is.)
To Reproduce
Expected Behavior
The code should be accepted by mypy.
Actual Behavior
mypy gives the following error:
Your Environment
mypy.ini
(and other config files): None