Commit Graph

14 Commits

Author SHA1 Message Date
Alex Waygood
b53843ab46 Add infrastructure allowing for test cases for third-party stubs (#8700)
- Move the logic for running mypy on the test cases from `tests/mypy_test.py` to a separate script, `tests/regr_test.py`.
- Add the necessary logic in order to be able to have test cases for third-party stubs.
- Move logic common to `tests/mypy_test.py` and `tests/regr_test.py` into `tests/colors.py`, and rename `tests/colors.py` to `tests/utils.py`.
- Add a new check to `tests/check_consistent.py`, to enforce the use of `# pyright: reportUnnecessaryTypeIgnoreComment=true` comments in third-party test cases. These are essential if we want to have our tests against false-negatives work with pyright.
- Update the relevant documentation to account for the new test file.
- Add a new job to the `tests.yml` GitHub workflow, to run the new test in CI.
- Add a simple proof-of-concept test case for `requests`, as a regression test for #7998.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-09-08 16:51:33 +01:00
Kevin Kirsche
8c51fab4e2 Support extras in stubtest_third_party.py (#8467) 2022-08-18 14:12:36 -07:00
Kevin Kirsche
3e88363b34 requests.adapters: use re-exports rather than assignments (#8485) 2022-08-05 12:46:07 +01:00
Shantanu
402489b40a requests: fix stubtest (#8463) 2022-08-01 18:39:06 -07:00
Sebastian Rittau
a0f6fb5669 Turn requests.requests.packages into a module (#8281)
Remove obsolete class VendorAlias
2022-07-12 20:30:28 +02:00
Milan Boers
ae09e4e866 Add more typing hints for requests (#7696)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-04-27 14:40:20 +03:00
Alex Waygood
1341a34525 Remove unused allowlist entries in babel and requests (#7233) 2022-02-15 16:26:13 -08:00
Akuli
df0fe16456 requests: remove an unused allowlist entry (#6911) 2022-01-13 20:35:37 +01:00
Akuli
423ae7f8fd requests: Remove an unused allowlist entry (#6897) 2022-01-12 00:53:43 -08:00
Alex Waygood
3351f0c0b9 Remove unused requests allowlist entry (#6882) 2022-01-10 00:18:23 +01:00
Sebastian Rittau
f8501d33c7 Use types-urllib3 for requests (#6859) 2022-01-08 16:25:50 +02:00
Shantanu
2ad00c9664 Use stubtest 0.920 (#6589)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-17 13:58:11 +02:00
MapleCCC
7ce0b9d670 Update urllib3.util.retry.Retry.__init__() to match the latest version released on PyPI (#5817) 2021-07-29 20:35:24 -07:00
Shantanu
7244ea1f71 Test third party stubs with stubtest (#5615) 2021-06-13 00:17:40 +02:00