python_type_check CI is broken: missing stubs for requests module
See original GitHub issue🐛 Bug
The python_type_check
CI is failing since mypy can’t find library stubs for requests module used here .
This can be seen in the failed tests for the recent commit by @prabhat00155 (although those changes are completely unrelated to this) and on some other PRs like #4008 (edit: and #4010)
Pitch
A simple fix would be to install them with python3 -m pip install types-requests
or to avoid something like this happening later we should just run mypy --install-types
to install all the missing stubs.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
requests.packages missing in types-requests 2.27.5 #6893
When moving from types-requests 2.26.3 to 2.27.5, the following ... module is installed, but missing library stubs or py.typed marker #6894.
Read more >Why is mypy finding "no type hints or library stubs" for any ...
This error is because mypy was not able to find the module you are trying to import, whether it comes bundled with type...
Read more >Mypy 0.900 Released
Third-party Library Stubs in Stub Packages (Breaking Change). Mypy now only ships with type stubs for stdlib modules (plus typing_extensions and ...
Read more >Using the Python Requests Module to Work with REST APIs
Initiate HTTP requests such as GET, PUT, POST, PATCH, and DELETE; Set HTTP headers to be used in the outgoing request; Store and...
Read more >mypy library stubs not installed for
I'm running Mypy inside a gitlab CI/CD, and mypy can't find installed stubs, ... module is installed, but missing library stubs or py.typed...
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
Closing this now, fixed with #4014.
After digging up a bit more, I found that this sudden appearance is probably due to the mypy 0.900 release today.
According to the docs:
cc @NicolasHug @pmeier