Commit Graph

6956 Commits

Author SHA1 Message Date
Samuel T
99cb36a784 pywin32: Complete modules using stubgen & stubtest (#8866)
Complete modules using stubgen & stubtest
2022-10-07 18:56:17 +01:00
Nikita Sobolev
4579094f77 Bump tabulate to 0.9 version (#8865) 2022-10-07 06:03:18 -07:00
Nikita Sobolev
76e18379a2 Add two more methods to pep8-naming stub (#8864) 2022-10-07 06:00:14 -07:00
Marc Mueller
93075bf2fc Use general type ignore for asyncio.Task (#8861) 2022-10-07 02:51:14 +01:00
Jelle Zijlstra
9733901770 psycopg2: __nonzero__ was removed (#8863)
Fixes #8862
2022-10-07 02:23:56 +01:00
Alex Waygood
8b41b1337b Bump flake8-pyi and black to latest versions (#8859) 2022-10-06 16:45:02 -07:00
Marc Mueller
f5369536b9 Update for typing_extensions 4.4.0 (#8821)
* TypeVarLike default parameters (PEP 696)
* TypeVarLike auto_inference parameter (PEP 695)
* Add typing_extensions.override (PEP 698)
* Add typing_extensions.Any

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-06 16:17:57 -07:00
Alex Waygood
e173cbe7b6 Mark requests stubs as complete (#8858)
Co-authored-by: Kevin Kirsche <kevin.kirsche@one.verizon.com>
2022-10-06 15:31:02 -07:00
Anders Kaseorg
9da105d4d9 markdown: Specify md type (#8857)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-10-06 14:20:05 -07:00
Jonathan Plasse
fa82452aa0 Add paho-mqtt stubs (#8853) 2022-10-06 17:23:35 +02:00
Nikita Sobolev
1459adcac5 ZoneInfo.clear_cache can have Optional input (#8856) 2022-10-06 13:38:52 +02:00
Alex Waygood
5d45e3babc fpdf2: complete stubs (#8855) 2022-10-06 11:36:26 +02:00
Alex Waygood
aeb16b155b stubsabot: only update existing branches if the diff relative to master would be different (#8854) 2022-10-05 17:35:20 -07:00
Nikita Sobolev
6e84b56016 Add metaclasses for string.Template and dataclasses.InitVar (#8852) 2022-10-05 14:41:24 -07:00
Shantanu
ae1cca13c1 stubsabot: try and fix change detection logic (#8851) 2022-10-05 09:53:57 -07:00
Shantanu
9b5ea00fed stubsabot: add some debug logs (#8850)
For #8778
2022-10-04 15:05:17 -07:00
github-actions[bot]
4b44119d0d [stubsabot] Bump braintree to 4.17.* (#8847)
Release: https://pypi.org/pypi/braintree/4.17.0
Homepage: https://developer.paypal.com/braintree/docs/reference/overview

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-10-04 14:47:04 -07:00
github-actions[bot]
378de18f6d [stubsabot] Bump pytz to 2022.4 (#8848)
Release: https://pypi.org/pypi/pytz/2022.4
Homepage: http://pythonhosted.org/pytz

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-10-04 14:46:47 -07:00
Alex Waygood
e73fcf220e mypy_test.py: Remove unused seen variable/parameters (#8846) 2022-10-04 14:38:31 -07:00
Alex Waygood
5cb7ef1f73 stubsabot: use an ssh-key when checking out typeshed (#8844)
Fixes #8434.

This uses a new ssh key that @JelleZijlstra just set up for our repo ([this option](https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-using-ssh-deploy-keys) in Peter Evans's guide to getting checks to run on automated PRs. It seems to be a good option in terms of both security and usability. It's also the option used by `oddbird/MetaDeploy` [here](https://github.com/oddbird/MetaDeploy/blob/main/.github/workflows/upgrade-deps.yml#L20), and they seem pretty happy about it (they wrote a nice blog post about their automated PRs for uprading dependencies [here](https://www.oddbird.net/2022/06/01/dependabot-single-pull-request/).)
2022-10-04 14:13:18 -07:00
Alex Waygood
08a3359e94 Run stubsabot daily, not weekly (#8845)
I think stubsabot has been a really big success. Let's change it to a daily workflow, so that we don't get an avalanche of PRs every Friday, and so that we can see more quickly if a PR changing stubsabot has accidentally broken the script. (If that _does_ happen, it should be pretty easy to just revert the commit that accidentally broke stubsabot, and go back to a version that works pretty well.)
2022-10-04 14:12:50 -07:00
Alex Waygood
55cddc7ac7 mypy_test.py: restore previous behaviour where all third-party stubs are tested by default (#8842) 2022-10-04 11:01:51 -07:00
Alex Waygood
1fc58e5413 Use stubgen's --export-less option in create_baseline_stubs.py (#8843) 2022-10-04 10:58:51 -07:00
Alex Waygood
477bfa2e92 Stubsabot: Add analysis of the diff to the PR body (#8817) 2022-10-04 10:14:39 -07:00
Shantanu
807f3a8fc6 Update open stubsabot PRs (#8813)
Fixes #8778

Note that not fixing this has some advantages, particularly if stubsabot
waits a little while after releases before making PRs (as discussed
earlier). Specifically, it gives us more coverage of upstream versions
and might provide a natural division of changes, compared to PRs that
make updates corresponding to several upstream versions.
2022-10-04 08:07:25 -07:00
Alex Waygood
5da171ba45 mypy_test.py: Always add dependencies of stubs to the files to test (#8800) 2022-10-04 08:05:13 -07:00
Samuel T
e5d52a39d4 Script to run all checks locally (#8798)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-10-04 07:21:10 -07:00
Sebastian Rittau
61de308e29 Update pyOpenSSL stubs to 22.1.* (#8838) 2022-10-04 05:29:16 -07:00
Akuli
1cb5482554 Add auto-generated peewee stubs (#8834) 2022-10-04 12:35:07 +02:00
Alex Waygood
f801229f37 fpdf2: Add missing files (#8836) 2022-10-03 17:05:37 -07:00
Alex Waygood
f9b1289226 requests: Add regression test for #8762 (#8835)
The final mypy_primer report for #8762 was an empty diff. Considering the number of issues we've had with our requests stubs over the last year, it feels like it makes sense to add a test case to make sure that it doesn't regress.
2022-10-03 16:11:44 -07:00
Shantanu
00d3f8207a Add a test case for covariant asyncio.Task (#8833) 2022-10-03 15:17:49 -07:00
Samuel T
ef4e52df93 PyAutoGUI: Use types from PyScreeze (#8824) 2022-10-03 15:11:42 -07:00
Sam Bull
493e35b15e Make asyncio.Task covariant (#8781) 2022-10-03 14:44:59 -07:00
Nikita Sobolev
27e9fde673 Add redis.asyncio.parser (#8830)
Source: https://github.com/redis/redis-py/blob/master/redis/asyncio/parser.py
2022-10-03 10:49:55 -07:00
Alex Waygood
78ca9c7390 Bump mypy to 0.982 (#8831) 2022-10-03 10:34:44 -07:00
Nikita Sobolev
721ad3d785 [redis] Improve fail parameter of Retry.call_with_retry (#8827)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-03 09:48:37 -07:00
Samuel T
2ded9e190f Add pyscreeze stubs (#8823) 2022-10-03 09:33:15 -07:00
Samuel T
0b71c96970 Add pywin32 type stubs from microsoft/python-type-stubs and mhammond/pywin32 (#8825) 2022-10-03 09:32:43 -07:00
Nikita Sobolev
bee4ee3199 [redis] Improve redis.asyncio.lock types (#8826) 2022-10-03 09:31:10 -07:00
crusaderky
6414250888 psutil: Improve types for disk_io_counters() and net_io_counters() (#8829) 2022-10-03 09:25:25 -07:00
Giles Johnson
aab29f626c Add type stubs for package console-menu (#8820)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-03 09:22:39 -07:00
Nikita Sobolev
6950c32370 Add parser to invoke.completion.complete.complete (#8819)
Closes https://github.com/python/typeshed/issues/8818
2022-10-01 12:52:39 -07:00
Shantanu
d7a701372d Run stub_uploader tests in CI (#8794) 2022-09-30 10:07:34 -07:00
Samuel T
f511f1f4e9 Allow create_baseline_stubs.py to add packages to existing stub (#8809) 2022-09-30 15:49:58 +01:00
Nikita Sobolev
380022c650 Remove empty __init__ methods (#8816) 2022-09-30 13:08:41 +01:00
Alex Waygood
deff426b6f Fix multiprocessing.DictProxy.values() (#8815)
Fixes #8814
2022-09-30 13:37:53 +02:00
github-actions[bot]
f9fdee5b8d [stubsabot] Bump setuptools to 65.4.* (#8811)
Release: https://pypi.org/pypi/setuptools/65.4.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v65.3.0...v65.4.0
2022-09-29 18:02:57 -07:00
github-actions[bot]
11a4f068c4 [stubsabot] Bump flake8-bugbear to 22.9.23 (#8812)
Release: https://pypi.org/pypi/flake8-bugbear/22.9.23
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/22.9.11...22.9.23

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI
2022-09-29 18:02:08 -07:00
Akuli
ba7f9b3715 Fix installing dependencies for 3rd party stubtest (#8807) 2022-09-29 10:52:11 +02:00