mypy errors don't show up in problems view nor in editor
See original GitHub issueVS Code version
1.62.2
Extension version
v2021.11.1422169775
OS type
Linux
OS version
20.04 LTS
Python distribution
python.org
Python version
3.9
Language server
Pylance
Expected behaviour
Show mypy errors in problems and in editor
Actual behaviour
They only show up in the Python/Output view:
##########Linting Output - mypy##########
downloader.py:9:1: error: Function is missing a return type annotation
downloader.py:9:1: error: Function is missing a type annotation for one or more arguments
Found 2 errors in 1 file (checked 1 source file)
Steps to reproduce
Create a python file a function that does not have a return type, hit safe.
Logs
see above
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:15
Top Results From Across the Web
Common issues and solutions - mypy 0.991 documentation
Common issues and solutions# · Can't install mypy using pip# · No errors reported for obviously wrong code# · Spurious errors and locally...
Read more >flake8 linting does not show up in problems tab or inside ...
Mypy linting works, pylint linting works, and flake8 actually is called and works, only nothing shows up in the editor. I have tried...
Read more >mypy-django/Lobby - Gitter
Any of you guys/gals able to get real-time error reporting in VSCode? ... Sorry, I can't help you with that, not my editor...
Read more >Give Python's static typing a go - Primary Unit
But why doesn't “normal” mode mypy not see the problem? I think this is to do with what is considered a “typed context”....
Read more >Mypy Documentation - Read the Docs
Python is a dynamic language, so usually you'll only see errors in your code ... This is not a problem when using variable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@diegovalenzuelaiturra does it work for you?
It’s running fine. Expected output, it doesn’t fail, but correctly shows the problems in my code.