Commit Graph
100 Commits
Author SHA1 Message Date
Shantanu 36efbf89ed ftplib: update for py312 (#10282) 2023-06-08 00:57:44 -07:00
Shantanu d778855052 webbrowser: update for py312 (#10280) 2023-06-08 08:14:10 +01:00
Shantanu e1ab1ad2fb calendar: update for py312 (#10216) 2023-06-07 00:52:19 -07:00
Shantanu fceb3ae225 argparse: improve add_argument_group and add_mutually_exclusive_group (#10262) 2023-06-06 08:27:51 +02:00
Shantanu a770216434 Make stubtest work better on macOS (#10263) 2023-06-04 16:10:15 -07:00
Shantanu f8dfacb851 pathlib: more changes for py312 (#10261) 2023-06-05 00:04:59 +01:00
ShantanuandAlex Waygood 758afb35d4 Some light reorganisation of stubtest allowlists (#10260)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-04 15:40:45 -07:00
Shantanu ef41a9ff1a Remove venv for stubtest stdlib (#10259) 2023-06-04 14:35:40 -07:00
Shantanu 7df870f452 Run stubtest for Python 3.12 (#10253) 2023-06-04 05:53:03 -07:00
Shantanu 03f1577607 Update pyright to 1.1.311 (#10254) 2023-06-04 10:02:34 +01:00
ShantanuandAlexWaygood be85cc7121 builtins: updates for py312 (#10211)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-06-04 01:05:40 +01:00
Shantanu d6a85e2c48 Attempt to clarify the ByteString situation (#9783)
See https://github.com/python/cpython/issues/102092

This makes the behaviour of typing.ByteString better match its
documentation.
2023-05-27 21:37:38 -07:00
Shantanu cf6fb07f2f math: updates for py312 (#10213) 2023-05-25 20:21:40 +01:00
ShantanuandAlex Waygood b7d927a53f random: update for py312 (#10214)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-25 18:49:51 +01:00
ShantanuandAlex Waygood 9a0d1e9bb9 statistics: update for py312 (#10217)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-25 18:48:01 +01:00
Shantanu 7994f165da json: add AttrDict in py312 (#10212) 2023-05-25 13:31:30 +01:00
Shantanu 854c453910 fractions: remove _normalize, update for py312 (#10218) 2023-05-25 10:21:19 +01:00
Shantanu a4e33d4053 shutil.unpack_archive: update for py312 (#10215)
Add the new "filter" parameter
2023-05-25 09:53:25 +01:00
Shantanu 1eeab77254 Update VERSIONS for the death of smptd (#10210) 2023-05-25 09:49:18 +01:00
ShantanuandAlex Waygood cc35f4be3b setuptools: bump to 67.7 (#10069)
Fixes #10067

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-22 09:50:42 -06:00
Shantanu 143b9612f1 psutil: fix stubtest (#10065)
Fixes #10059
2023-04-19 20:58:49 -06:00
Shantanu 1c0500a570 bs4: update for 4.12.1 (#10015) 2023-04-06 08:05:21 +01:00
Shantanu 1537a598d0 email.message: fix return type of get_charsets (#9944)
Fixes #9885
2023-03-26 00:42:45 +00:00
Shantanu aac3863752 stubsabot: fix legacy version parsing (#9866)
New `packaging` is strict and doesn't like paramiko's pokemon versioning
scheme from 2004

Fixes #9865
2023-03-10 23:30:53 -08:00
Shantanu 4b755c7034 docopt: add exception types (#9839) 2023-03-04 08:36:16 +00:00
Shantanu da9366d016 Add frozen_default to dataclass_transform (#9756) 2023-02-18 15:25:29 -08:00
Shantanu 5c54e52e23 Fix default value of input, remove now unused allowlist entry for epoll (#9742) 2023-02-17 01:55:31 +02:00
Shantanu 660c832fa4 Remove prettier from pre-commit (#9744)
This doesn't autofix, see #9742

> GitHub prevented pre-commit.ci from autofixing this pr due to autofixes to a workflow file

Life is too short to spend it being yelled at by robots because line
length in some YAML is too long.
2023-02-16 15:38:39 -08:00
Shantanu 58edfea33f email.parser: narrow io types (#9737) 2023-02-15 10:43:39 +01:00
Shantanu 35871f4222 Bump DateTimeRange to 2.0.* (#9720)
Release: https://pypi.org/pypi/DateTimeRange/2.0.0
Homepage: https://github.com/thombashi/DateTimeRange
Diff: https://github.com/thombashi/DateTimeRange/compare/v1.2.0...v2.0.0
2023-02-12 10:40:54 +01:00
Shantanu 398bd90b8e whatthepatch: add parse_git_binary_diff (#9616)
Added in 1.0.4
https://github.com/cscorley/whatthepatch/pull/whatthepatch

Fixes #9615
2023-01-30 00:49:49 +00:00
Shantanu fa204f6bd4 Update compileall stripdir type (#9404)
See https://github.com/python/cpython/pull/19883
2023-01-08 22:26:33 -08:00
Shantanu 8c0964714c crontab: upstream did some py2 cleanup (#9406)
Fixes #9405
2022-12-23 19:41:47 -08:00
ShantanuandJelle Zijlstra 44cdc6e284 crontab: improve types, update to 2.7 (#9392)
https://gitlab.com/doctormo/python-crontab/-/blob/v2.7.0/crontab.py

Closes #9391

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-12-22 18:42:24 -06:00
Shantanu a3ce512095 typing: remove metaclass from Sized (#9058)
as per https://github.com/python/typeshed/pull/8977#issuecomment-1297872394
2022-11-01 18:38:52 -07:00
Shantanu 4d3cc1f613 dis: fix types (#9025)
`_get_code_object` cannot take bytes
2022-10-28 17:51:29 -07:00
Shantanu 4c48fd63b1 pyexpat: fix bytes usage (#9017) 2022-10-28 13:41:24 -07:00
Shantanu c5fe795c91 xmltodict: improve parse input types (#9018) 2022-10-28 21:46:46 +02:00
Shantanu 093c58bfa2 ast: parse accepts PathLike filename (#9020) 2022-10-28 11:18:38 -07:00
Shantanu 7edad955a2 typed-ast: fix get_docstring, allow buffer (#9019) 2022-10-28 11:05:16 -07:00
Shantanu 86ada9e41a io: use ReadableBuffer for BytesIO (#8995) 2022-10-27 11:42:11 +02:00
Shantanu 7ba0479d75 colorama: fixes for latest version (#8987)
Fixes #8986
2022-10-25 17:57:01 -07:00
Shantanu 19f57a6e57 Remove tzlocal from pyright's exclude (#8969) 2022-10-23 14:30:57 +02:00
Shantanu 33e1a34e3c subprocess: use narrower types for TimeoutExpired.std* (#8886)
See https://github.com/python/cpython/pull/97685

The union type should be acceptable given https://github.com/python/cpython/issues/87597#issuecomment-1207402415. In general I'd like us to be able to type this, since these being bytes can be surprising if you pass text=True, but we'll see what mypy_primer says
2022-10-11 21:20:44 -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
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
Shantanu 00d3f8207a Add a test case for covariant asyncio.Task (#8833) 2022-10-03 15:17:49 -07:00
Shantanu d7a701372d Run stub_uploader tests in CI (#8794) 2022-09-30 10:07:34 -07:00
Shantanu 95444479ac google-cloud-ndb: drop dependency on types-six (#8793)
For https://github.com/typeshed-internal/stub_uploader/pull/61#discussion_r979327370
2022-09-26 22:56:42 -07:00
Shantanu 9abe56a19a boto: drop dependency on types-six (#8792) 2022-09-26 06:01:19 -07:00
Shantanu 2969922b68 Fix intransitive subtyping issue with SupportsGetItem (#8785)
See https://github.com/python/mypy/issues/13713 for details
2022-09-23 13:25:15 -07:00
Shantanu 67c858408d Upgrade to termcolor>=2 (#8766) 2022-09-19 08:17:30 +02:00
Shantanu 93ee41bcd9 typing: add _type_repr (#8624) 2022-08-26 12:15:11 +02:00
Shantanu c91dfdeb2b Fix stubsabot action (#8618)
Broken by #8605 and the issue creation code was always broken
2022-08-25 17:28:59 -07:00
Shantanu 49062f53c3 Improve check_consistent (#8581)
- Use pathlib for convenience
- Share more logic between check_stubs and check_stdlib
- Better recursive checking, e.g. if a README.md is in the wrong place
- Fixes bug in checking directories in stubs/
- Test distribution names are valid
- Errors now contain full paths
- I believe pathlib normalises separators, but someone with Windows
  might want to double check this continues to work
2022-08-23 23:18:07 -07:00
Shantanu 19beaba9e7 Disallow adding stubs for types- packages (#8579)
This would lead to confusion. The types prefix is special cased in
various ways in stub_uploader
2022-08-20 15:44:17 -07:00
Shantanu 133d5f375c fpdf2: fix for 2.5.6 changes (#8546)
Life is much easier when upstream has some annotations

Fixes #8545
2022-08-16 21:32:39 -07:00
Shantanu 2efaa6a379 setuptools: fix stubtest (#8540)
Fixes #8539
2022-08-12 19:37:11 -07:00
Shantanu fed2e5e0ad psutil: improve svmem types (#8503) 2022-08-08 14:25:22 +02:00
Shantanu 02a72d0045 Bump pyflakes to 2.5.* (#8495) 2022-08-05 08:55:36 +02:00
Shantanu 402489b40a requests: fix stubtest (#8463) 2022-08-01 18:39:06 -07:00
Shantanu a70667804a Bump braintree to 4.16.* (#8433)
Resolves #8431
2022-07-28 22:32:06 -07:00
Shantanu 804628dc7d Remove unused protocol (#8418) 2022-07-27 20:35:47 -07:00
Shantanu 1a8a49e671 wsgiref.types: use Iterator, not Iterable (#8358)
https://github.com/python/typeshed/issues/8356
2022-07-21 13:26:44 -07:00
Shantanu 85077b273d Show all packages in environment (#8341) 2022-07-19 19:42:52 -07:00
Shantanu c783dda71b Allowlist useless modules (#8340)
These are the ones I chose not to add from #8321

Fixes most of #8339
2022-07-19 19:15:20 -07:00
Shantanuandhauntsaninja f76c6ed55a multiprocessing: make some overloads more precise (#8330)
See discussion here: https://github.com/python/typeshed/issues/4266#issuecomment-1187867029

Co-authored-by: hauntsaninja <>
2022-07-19 16:55:23 +01:00
4b34b345f1 Add missing third party modules (#8321)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: hauntsaninja <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-19 08:11:29 +01:00
Shantanu 46937df750 wave: allow passing anonymous tuple (#8328)
Fixes #8322
2022-07-18 19:53:50 -07:00
Shantanu 4b184356f1 string: remove stray comment (#8329) 2022-07-18 19:53:15 -07:00
Shantanu 38407a7904 [stubsabot] Bump Markdown to 3.4.* (#8309) 2022-07-18 13:04:27 +02:00
Shantanu 64359528fc croniter: make package, complete public API (#8316) 2022-07-17 17:08:03 -07:00
Shantanu 936314b979 Add stubsabot Github Action (#8303) 2022-07-17 13:21:51 -07:00
Shantanu 5ef20e8021 Use packaging to parse versions (#8314)
packaging is the standard tool for dealing with versions and
requirements. This allows us to easily support all PEP 508 specs.
packaging also has good error messages, so I don't create our own here.
This lets us get rid of our handrolled half parser and sanity checks.
I kept the whitespace consistency check, since that's just a formatting
lint and isn't testing the correctness of parsing (which we now
definitely do correctly).
2022-07-17 12:35:32 -07:00
Shantanu 9df28aac13 Make xxhash, editdistance into packages (#8320)
This matches the runtime. Also see #8319
2022-07-17 12:26:18 -07:00
Shantanu de1a79bd00 Make VERSIONS more accurate (#8311)
Some of the versions starting at 3.6 looked suspicious, so I
checked those against git history for the CPython repo.
2022-07-15 18:19:42 -07:00
Shantanu e90ee8e0d9 [stubsabot] Bump jsonschema to 4.7.* (#8299) 2022-07-15 08:40:05 +02:00
Shantanuandhauntsaninja 8fb85533cd [stubsabot] Bump setuptools to 63.2.* (#8301)
Co-authored-by: hauntsaninja <>
2022-07-14 20:48:09 -07:00
Shantanuandhauntsaninja 865eb9bd0c [stubsabot] Bump regex to 2022.7.9 (#8300)
Co-authored-by: hauntsaninja <>
2022-07-14 20:32:48 -07:00
Shantanu ee09a67c5c [stubsabot] Bump docutils to 0.19.* (#8260) 2022-07-08 20:55:22 +01:00
Shantanuandhauntsaninja 631a948de9 [stubsabot] Bump ujson to 5.4.* (#8259)
Co-authored-by: hauntsaninja <>
2022-07-08 20:42:42 +01:00
Shantanu 72c7eb6f80 [stubsabot] Bump setuptools to 62.6.* (#8224)
Most of setuptools.config is not included as the module is deprecated.
2022-07-08 21:23:18 +02:00
Shantanuandhauntsaninja b941cfffde create_baseline_stubs: check all defs by default (#8227)
Since stubgen will usually create definition complete stubs, we should have
stubtest check missing definitions so we can know to reflect any future
additions.

Co-authored-by: hauntsaninja <>
2022-07-06 22:55:29 +05:30
Shantanuandhauntsaninja e6482354dd Suggest updating mypy on stub removals (#8049)
Co-authored-by: hauntsaninja <>
2022-07-06 08:11:05 +01:00
Shantanu fb478f0b58 [stubsabot] Bump Pillow to 9.2.* (#8226) 2022-07-04 10:20:14 +02:00
Shantanu 1f0172c85d [stubsabot] Bump babel to 2.10.* (#8222) 2022-07-01 22:45:32 +02:00
Shantanuandhauntsaninja 81a95b4b22 [stubsabot] Bump stripe to 3.5.* (#8223)
Co-authored-by: hauntsaninja <>
2022-07-01 20:33:00 +01:00
Shantanuandhauntsaninja 25d7adefb2 [stubsabot] Bump aws-xray-sdk to 2.10.* (#8221)
Co-authored-by: hauntsaninja <>
2022-07-01 20:32:41 +01:00
Shantanu 5818c3e6c4 [stubsabot] Bump flake8-bugbear to 22.7.1 (#8220) 2022-07-01 11:57:51 -07:00
Shantanuandhauntsaninja cf2eaf2a75 [stubsabot] Bump stripe to 3.4.* (#8212)
Co-authored-by: hauntsaninja <>
2022-07-02 00:11:51 +05:30
Shantanuandhauntsaninja af21ef5cb3 [stubsabot] Bump psutil to 5.9.* (#8213)
Co-authored-by: hauntsaninja <>
2022-07-02 00:11:33 +05:30
200891fed1 Bump prettytable to 3.3.* (#8207)
Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-30 07:50:39 +01:00
Shantanu 6e039ddce3 [stubsabot] Bump python-slugify to 6.1.* (#8208) 2022-06-29 09:54:42 -07:00
Shantanuandhauntsaninja 4253a1fbf7 [stubsabot] Bump hdbcli to 2.13.* (#8206)
Co-authored-by: hauntsaninja <>
2022-06-29 17:16:15 +01:00
b4587c64c6 Bump fpdf2 to 2.5.* (#8173)
Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-29 16:54:36 +01:00
Shantanu 0178a0e742 [stubsabot] Bump croniter to 1.3.* (#8185) 2022-06-26 17:54:19 +01:00
Shantanuandhauntsaninja 531b162a66 [stubsabot] Bump tzlocal to 4.2 (#8184)
Co-authored-by: hauntsaninja <>
2022-06-26 17:49:20 +01:00
Shantanuandhauntsaninja 627285059a [stubsabot] Bump jmespath to 1.0.* (#8183)
Co-authored-by: hauntsaninja <>
2022-06-26 17:46:04 +01:00
Shantanuandhauntsaninja cdcf264d07 fpdf2: improve types (#8176)
Co-authored-by: hauntsaninja <>
2022-06-26 20:53:29 +05:30