Commit Graph
6579 Commits
Author SHA1 Message Date
Sebastian RittauandGitHub 5534007189 Fix return type of email.header.decode_header() (#8337) 2022-07-19 20:43:48 +01:00
Alex WaygoodandGitHub 6903041744 Use CamelCase for type aliases in xml.etree.ElementPath.pyi (#8335) 2022-07-19 12:04:43 -07:00
q0wandGitHub 6d0e01e62b socketserver: Set StreamRequestHandler.connection to SSLSocket (#8274) 2022-07-19 09:13:43 -07:00
ShantanuGitHubhauntsaninja <>
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 RittauandGitHub 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 WaygoodandGitHub fceccd217c Upgrade mypy to 0.971 (#8332) 2022-07-19 16:27:05 +01:00
Alex WaygoodandGitHub e2ce7c6344 stdlib: audit more callback annotations (#8209) 2022-07-19 07:07:25 -07:00
Alex WaygoodandGitHub 540a6b25bf Improve urllib.parse.urldefrag (#8204)
Fixes #2477
2022-07-19 07:05:09 -07:00
Ben AvrahamiandGitHub 25e74740ae Type async Pipeline commands explicitly (#8325) 2022-07-19 15:15:09 +02:00
Nikita SobolevandGitHub 9cda16f5df Improve redis.sentinel types (#8331) 2022-07-19 13:04:09 +02:00
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
ShantanuGitHubAlex Waygoodhauntsaninja <>pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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
ShantanuandGitHub 46937df750 wave: allow passing anonymous tuple (#8328)
Fixes #8322
2022-07-18 19:53:50 -07:00
ShantanuandGitHub 4b184356f1 string: remove stray comment (#8329) 2022-07-18 19:53:15 -07:00
Alex WaygoodandGitHub e156c63bdb inspect, asyncio: Use more TypeGuards (#8057) 2022-07-18 19:49:12 -07:00
Alex WaygoodandGitHub 4b504c78e0 Improve asyncio callbacks (#8192) 2022-07-18 19:46:38 -07:00
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]GitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Alex Waygood
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
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
唐翔昊andGitHub 341057105f pycurl: Add CurlMulti.setopt() (#8315) 2022-07-18 19:02:28 +01:00
Alex WaygoodandGitHub 8af41720b6 Remove frozendict stubs (#8326) 2022-07-18 18:47:06 +01:00
ShantanuandGitHub 38407a7904 [stubsabot] Bump Markdown to 3.4.* (#8309) 2022-07-18 13:04:27 +02:00
TalalandGitHub 4897e7ce9b Update README badges (#8323) 2022-07-18 11:33:47 +01:00
Alex WaygoodandGitHub 35616b439f Run pycln as a pre-commit hook in CI (#8304) 2022-07-18 09:27:28 +02:00
ShantanuandGitHub 64359528fc croniter: make package, complete public API (#8316) 2022-07-17 17:08:03 -07:00
ShantanuandGitHub 936314b979 Add stubsabot Github Action (#8303) 2022-07-17 13:21:51 -07:00
ShantanuandGitHub 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
ShantanuandGitHub 9df28aac13 Make xxhash, editdistance into packages (#8320)
This matches the runtime. Also see #8319
2022-07-17 12:26:18 -07:00
Alex WaygoodandGitHub 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
ShantanuandGitHub 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
LeeandGitHub a4b6d0b434 markdown: remove deleted methods of Registry. (#8197) 2022-07-15 22:29:13 +01:00
Sebastian RittauandGitHub ba8ea2c911 Move Rune Tynan to former maintainers (#8306) 2022-07-15 22:13:27 +02:00
AkuliGitHubAlex Waygoodpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
3c90c97b9a List[Foo] + List[Bar] now returns List[Foo | Bar] (#8293)
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-07-15 20:20:50 +03:00
Alex WaygoodandGitHub 0764f9f31f tqdm: Add __all__ to __init__.pyi and submodules (#8308)
Fixes #8307
2022-07-15 17:39:45 +01:00
Alex WaygoodandGitHub ed0b3a4412 tqdm: Improve a few __init__ methods (#8246) 2022-07-15 10:30:24 +01:00
ShantanuandGitHub e90ee8e0d9 [stubsabot] Bump jsonschema to 4.7.* (#8299) 2022-07-15 08:40:05 +02:00
ShantanuGitHubhauntsaninja <>
8fb85533cd [stubsabot] Bump setuptools to 63.2.* (#8301)
Co-authored-by: hauntsaninja <>
2022-07-14 20:48:09 -07:00
ShantanuGitHubhauntsaninja <>
865eb9bd0c [stubsabot] Bump regex to 2022.7.9 (#8300)
Co-authored-by: hauntsaninja <>
2022-07-14 20:32:48 -07:00
Jelle ZijlstraandGitHub 55562b83a1 threading: __exit__ only returns None (#8298)
Fixes #8297 

`threading.Lock.__exit__` is implemented in C and can only return None: https://github.com/python/cpython/blob/6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e/Modules/_threadmodule.c#L200
`threading.Condition.__exit__` returns whatever its lock's `__exit__` returns, but our type annotations indicate that the lock is always a `Lock` or an `_RLock`, and neither returns anything other than None.
2022-07-14 20:00:08 -07:00
hasierandGitHub fe44de2741 python-jose: improvements to jose.backends (#8294) 2022-07-14 19:27:27 -07:00
Alex WaygoodandGitHub 10f3238998 Add typing_extensions.NamedTuple (#8295)
Fixes https://github.com/python/typing_extensions/issues/56
2022-07-14 15:02:51 +01:00
Alex WaygoodandGitHub 9645dae925 int.denominator, int.imag: More precise return types (#8266) 2022-07-14 11:25:05 +01:00
hasierandGitHub 82745be9fc Complete python-jose typing (#8258) 2022-07-13 18:01:08 +01:00
Alex WaygoodandGitHub 6bc6289aaf Use stricter pyright settings for some tkinter stubs (#8291) 2022-07-13 17:16:16 +02:00
Sebastian RittauandGitHub 91fd79c158 Updates for Python 3.11.0b4 (#8288) 2022-07-13 13:10:20 +02:00
b92286982d Add types to invoke.Runner.run (#8279)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-07-13 09:29:45 +01:00
Alex WaygoodandGitHub a1af16bda5 fractions.pyi: Correct dunder parameter names (#8285)
This wasn't possible prior to #8280, which disabled pyright's reportSelfClsParameterName check
2022-07-12 22:40:48 +01:00
Jelle ZijlstraandGitHub 0306754f5f os: pos-only params for various functions (#8284) 2022-07-12 12:30:19 -07:00
Jelle ZijlstraandGitHub 2a7439e106 Revert "add overload to tuple.__new__ to better express an empty tuple" (#8278)
This reverts commit 64554bdd5d.

Also add a test case.
2022-07-12 12:29:37 -07:00
Jelle ZijlstraandGitHub 2a1b33df9f os: Params for posix_fallocate and posix_fadvise are pos-only (#8283)
https://github.com/python/cpython/blob/90a6e56e5663233fe986331ef3f10422fe57dcbc/Modules/posixmodule.c#L10845
2022-07-12 12:19:41 -07:00