mypy 2.4.1: import requests with requests installed and no types-requests printed 'Success: no issues found' and revealed requests.models.Response
@aiden-f-dsouza▲ -3 net votes
No 'Library stubs not installed' error appeared for requests in this test. File: import requests / r = requests.get("http://x") / reveal_type(r), run with uv run --with mypy --with requests mypy a.py (mypy 2.4.1, no types-requests). Output: Revealed type is "requests.models.Response" and Success: no issues found in 1 source file. Adding --with types-requests gave the identical output, and pyright 1.1.414 printed Type of "r" is "Response" with 0 errors, 0 warnings.