Commit Graph

6597 Commits

Author SHA1 Message Date
Nikita Sobolev
73de76c033 Change Stub versioning wording in CONTRIBUTING.md (#8365) 2022-07-22 11:31:51 +02:00
Nikita Sobolev
175e81be7f Improve redis.utils types (#8362)
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-07-22 08:57:15 +01:00
Nikita Sobolev
fab1b59715 Always return Iterator, not Iterable for __iter__ (#8361) 2022-07-22 08:10:58 +01: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
Jelle Zijlstra
b418c1c3ba beautifulsoup4: Fix type of Tag.__iter__ (#8357) 2022-07-21 21:32:15 +02:00
Nikita Sobolev
6ae2da64e6 Improve redis.retry types (#8354) 2022-07-21 17:51:13 +02:00
Tetsuo Kiso
9fe771f31d xml.dom.minidom: add more missing type annotations to methods on Element (#8355) 2022-07-21 17:45:52 +02:00
Alex Waygood
eca5549ee1 CI: Use macos-latest for stubtest (#8353) 2022-07-21 16:52:41 +02:00
Nikita Sobolev
6fa7846edd Annotate some redis.backoff items (#8352) 2022-07-21 16:52:15 +02:00
Tetsuo Kiso
10bc4b0584 xml.dom.minidom: add missing type annotation of Element.getAttribute (#8350) 2022-07-21 08:18:58 +02:00
John Villalovos
e42c983740 requests: add annotation for parse_header_links (#8349)
In the requests package the function `utils.parse_header_links()`
takes a str as input and returns a list of dictionaries.

This can be seen in the unit tests that are used:
786255613b/tests/test_utils.py (L644-L664)
2022-07-20 21:02:29 -07:00
Alex Waygood
5bc9554573 stdlib/VERSIONS: fix crusty comment (#8347)
Resolves #8310
2022-07-20 18:59:01 +02:00
Alex Waygood
d1e80a724a Add some missing Windows constants (#8346) 2022-07-20 17:45:36 +01:00
Sebastian Rittau
73fbb53475 Update setuptools stubs (#8345)
setuptools now vendors `distutils` as `setuptools._distutils`.
2022-07-20 18:44:22 +02:00
Nikita Sobolev
f178ae0d83 Improve types of redis.connection module (#8342)
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-07-20 13:48:13 +01: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
Alex Waygood
a57e182608 enum: Correct IntFlag mro on 3.11+ (#8334) 2022-07-19 21:47:37 +02:00
Sebastian Rittau
5534007189 Fix return type of email.header.decode_header() (#8337) 2022-07-19 20:43:48 +01:00
Alex Waygood
6903041744 Use CamelCase for type aliases in xml.etree.ElementPath.pyi (#8335) 2022-07-19 12:04:43 -07:00
q0w
6d0e01e62b socketserver: Set StreamRequestHandler.connection to SSLSocket (#8274) 2022-07-19 09:13:43 -07:00
Shantanu
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
Sebastian Rittau
ef443b6359 Re-enable SQLAlchemy mypy tests (#8282)
These used to crash if run twice in succession locally, but the crash has been fixed on mypy 0.971
2022-07-19 16:46:39 +01:00
Alex Waygood
fceccd217c Upgrade mypy to 0.971 (#8332) 2022-07-19 16:27:05 +01:00
Alex Waygood
e2ce7c6344 stdlib: audit more callback annotations (#8209) 2022-07-19 07:07:25 -07:00
Alex Waygood
540a6b25bf Improve urllib.parse.urldefrag (#8204)
Fixes #2477
2022-07-19 07:05:09 -07:00
Ben Avrahami
25e74740ae Type async Pipeline commands explicitly (#8325) 2022-07-19 15:15:09 +02:00
Nikita Sobolev
9cda16f5df Improve redis.sentinel types (#8331) 2022-07-19 13:04:09 +02:00
Alex Waygood
e3d4bdc91a Third-party stubs: enforce CamelCase for type alias names (#8256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-07-19 08:23:24 +01:00
Shantanu
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
Alex Waygood
e156c63bdb inspect, asyncio: Use more TypeGuards (#8057) 2022-07-18 19:49:12 -07:00
Alex Waygood
4b504c78e0 Improve asyncio callbacks (#8192) 2022-07-18 19:46:38 -07:00
Graham Bleaney
9519e3652b Add LiteralString support to string module (#8268)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-18 19:34:27 -07:00
pre-commit-ci[bot]
89154bf4c8 [pre-commit.ci] pre-commit autoupdate (#8327)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/hadialqattan/pycln: v2.0.2 → v2.0.4](https://github.com/hadialqattan/pycln/compare/v2.0.2...v2.0.4)

* Update requirements-tests.txt

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-07-18 22:40:15 +01:00
David Hotham
6873a78b6b requests: Annotate Session.merge_environment_settings (#8313)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-18 19:54:48 +01:00
唐翔昊
341057105f pycurl: Add CurlMulti.setopt() (#8315) 2022-07-18 19:02:28 +01:00
Alex Waygood
8af41720b6 Remove frozendict stubs (#8326) 2022-07-18 18:47:06 +01:00
Shantanu
38407a7904 [stubsabot] Bump Markdown to 3.4.* (#8309) 2022-07-18 13:04:27 +02:00
Talal
4897e7ce9b Update README badges (#8323) 2022-07-18 11:33:47 +01:00
Alex Waygood
35616b439f Run pycln as a pre-commit hook in CI (#8304) 2022-07-18 09:27:28 +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
Alex Waygood
1ebe1b463e Fix asyncio.gather regression (#8271)
Adding the empty-tuple overload caused major problems for pyright, and that overload only deals with an unlikely edge case anyway. Get rid of it, and replace the fallback overload with a more general overload.

Fixes #8270.
2022-07-16 18:56:58 +01: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
Lee
a4b6d0b434 markdown: remove deleted methods of Registry. (#8197) 2022-07-15 22:29:13 +01:00
Sebastian Rittau
ba8ea2c911 Move Rune Tynan to former maintainers (#8306) 2022-07-15 22:13:27 +02:00