Commit Graph
100 Commits
Author SHA1 Message Date
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
d23d213d7e [stubsabot] Bump aws-xray-sdk to 2.9.* (#8180)
* [stubsabot] Bump aws-xray-sdk to 2.9.*

Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-26 14:08:03 +01:00
329edb0a2d [stubsabot] Bump pep8-naming to 0.13.* (#8181)
* [stubsabot] Bump pep8-naming to 0.13.*

* Bye bye Python 2

Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-26 14:00:29 +01:00
Shantanuandhauntsaninja feb54c8cb0 [stubsabot] Bump flake8-typing-imports to 1.12.* (#8179)
Co-authored-by: hauntsaninja <>
2022-06-26 13:53:56 +01:00
bef4a5ff65 DateTimeRange: complete stubs (#8168)
Co-authored-by: hauntsaninja <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-26 10:51:00 +01:00
Shantanu a81c695cd6 Bump xmltodict to 0.13.* (#8172) 2022-06-26 10:45:58 +01:00
Shantanuandhauntsaninja e24bbb7000 [stubsabot] Bump python-nmap to 0.7.* (#8174)
Co-authored-by: hauntsaninja <>
2022-06-26 15:09:11 +05:30
Shantanuandhauntsaninja ffb25d964c deprecated: complete stubs (#8169)
Co-authored-by: hauntsaninja <>
2022-06-26 10:30:22 +01:00
Shantanuandhauntsaninja 634f18f615 emoji: complete stubs (#8170)
Co-authored-by: hauntsaninja <>
2022-06-26 08:58:00 +01:00
Shantanuandhauntsaninja b6379e7c7a Check missing definitions for several packages (#8167)
Co-authored-by: hauntsaninja <>
2022-06-26 08:56:18 +01:00
ShantanuandAlexWaygood 288c6ac447 Bump jsonschema to 4.6.* (#8161)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-06-26 08:18:41 +05:30
ShantanuandAlexWaygood d975734b8b Bump regex to 2022.6.2 (#8162)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-06-26 08:18:01 +05:30
Shantanu 98882d3cbe PyYAML: check missing defs (#8159) 2022-06-25 18:05:23 +01:00
Shantanuandhauntsaninja 9113e16c0c [stubsabot] Bump pycurl to 7.45.* (#8163)
Co-authored-by: hauntsaninja <>
2022-06-25 18:02:59 +01:00
Shantanu a9fb8c5119 stubsabot: add project links (#8158)
See https://github.com/python/typeshed/pull/8157 for an example
2022-06-25 06:42:48 -07:00
Shantanu 564347b04e chardet: improve stubs (#8155) 2022-06-25 06:40:58 -07:00
Shantanuandhauntsaninja 14628b519a [stubsabot] Bump entrypoints to 0.4.* (#8157)
Co-authored-by: hauntsaninja <>
2022-06-25 08:25:38 +01:00
Shantanu 22532ba504 dj-database-url, docopt, editdistance, first: check missing defs (#8154) 2022-06-25 08:16:59 +01:00
Shantanuandhauntsaninja 74687b1fa0 ujson, pyfarmhash, toposort: check for missing definitions (#8153)
Co-authored-by: hauntsaninja <>
2022-06-25 08:15:44 +01:00
Shantanu 8b422ff01d appdirs, tabulate, termcolor, xmltodict: check missing defs (#8156)
complete termcolor, xmltodict
2022-06-25 08:09:25 +01:00
Shantanuandhauntsaninja 4415e9cc0b [stubsabot] Bump requests to 2.28.* (#8152)
Co-authored-by: hauntsaninja <>
2022-06-25 12:01:22 +05:30
Shantanuandhauntsaninja 6021a9ec6b [stubsabot] Bump flake8-bugbear to 22.6.22 (#8151)
Co-authored-by: hauntsaninja <>
2022-06-25 12:01:16 +05:30
Shantanuandhauntsaninja 4f5d6743f5 [stubsabot] Bump chardet to 5.0.* (#8150)
Co-authored-by: hauntsaninja <>
2022-06-25 12:01:06 +05:30
Shantanu 305f10b808 stubtest: per project --ignore-missing-stub (#8122) 2022-06-21 05:52:24 -07:00
Shantanu 7ee3b5672c Update cachetools to 5.2.* (#8119) 2022-06-21 09:02:00 +02:00