Commit Graph

8069 Commits

Author SHA1 Message Date
Andrew Sansom
18d45d62aa Broaden collections.Counter __iadd__, __isubtract__, __iand__, and __ior__ to accept any mapping (#10397)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-03 08:27:17 +01:00
Nikita Sobolev
3d352e85e5 Use proper return types for __await__ methods in redis.asyncio.client (#10379) 2023-07-01 18:40:40 +01:00
Nikita Sobolev
8162faa934 Fix signature of http.client.HTTPSConnection for Python 3.12 (#10392) 2023-07-01 18:31:47 +01:00
Nikita Sobolev
a8051fb2c4 Add _generate_next_value_ to StrEnum (#10390)
Fixes https://github.com/python/typeshed/issues/10384

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-01 18:28:09 +01:00
Alex Waygood
39fd112f3e Further improve non-types dependency handling in pytype_test.py (#10393) 2023-07-01 00:24:38 +01:00
Alex Waygood
7fdd05003a pytype_test.py: Use importlib.metadata instead of pkg_resources (#10391) 2023-06-30 21:37:06 +01:00
Alex Waygood
cd0388439a Remove stubs for annoy (#10388) 2023-06-30 11:40:45 +02:00
Alex Waygood
b6a422112b Pin typing_extensions to 4.6.3 (#10385)
Our CI is very red on `main` at the moment, due to the release of typing_extensions 4.6.3 (see #10383). #10344 is the fix for this, but that PR breaks pytype. For now, let's just pin to 4.6.3 to get CI green again.
2023-06-29 06:24:30 -07:00
github-actions[bot]
201940cdc1 [stubsabot] Mark annoy as obsolete since 1.17.1 (#10374)
Release: https://pypi.org/pypi/annoy/1.17.1
Homepage: https://github.com/spotify/annoy
Diff: https://github.com/spotify/annoy/compare/v1.17.0...v1.17.1

Co-authored-by: stubsabot <>
2023-06-29 01:27:47 +01:00
Nikita Sobolev
ae5b28ff37 Stricter pyright checks for inifile (#10382) 2023-06-28 22:57:25 +01:00
Naveed Jooma
aab9fdd86a [PIL] Make return type of PyDecoder.decode a tuple (#10381) 2023-06-28 13:47:49 -07:00
Alex Waygood
5ee46bd291 Bump various test dependencies (#10378) 2023-06-28 14:22:49 +01:00
Sam Bull
0869b430d6 asyncio: start_tls() can return None (#10346) 2023-06-28 11:40:19 +01:00
Sebastian Rittau
1e25866b23 Improve pytype compatibility handling (#10377) 2023-06-28 12:29:13 +02:00
Nikita Sobolev
1d59c5cb13 Bump PyMySQL to 1.1.* (#10376) 2023-06-28 12:28:11 +02:00
Alex Waygood
7289fb9f77 Stubsabot: Fix incorrect diff link when a py.typed was added in a micro version (#10375) 2023-06-28 11:48:11 +02:00
github-actions[bot]
d5f0d155d1 [stubsabot] Mark flake8-plugin-utils as obsolete since 1.3.3 (#10373)
Release: https://pypi.org/pypi/flake8-plugin-utils/1.3.3
Homepage: https://pypi.org/project/flake8-plugin-utils

Co-authored-by: stubsabot <>
2023-06-28 09:24:41 +01:00
Alex Waygood
d32754c336 Stubsabot: mark stubs as obsolete, even if the py.typed file was added in a micro version (#10368) 2023-06-27 20:17:17 +01:00
Sebastian Rittau
d2c87ac97d Bump redis to 4.6.0 (#10360)
Closes: #10359
2023-06-27 19:25:52 +01:00
Avasam
93b4060cd4 [PyInstaller] TOCs are not often lists of TOCs (#10366) 2023-06-27 16:36:51 +02:00
David Salvisberg
8bc4be3868 Fixes incorrect return value for MultiDict.get without default param (#10367) 2023-06-27 06:53:32 -07:00
github-actions[bot]
b8ab395d4b [stubsabot] Bump tree-sitter-languages to 1.6.* (#10364)
Release: https://pypi.org/pypi/tree-sitter-languages/1.6.1
Homepage: https://github.com/grantjenks/py-tree-sitter-languages
Diff: https://github.com/grantjenks/py-tree-sitter-languages/compare/v1.5.0...v1.6.1

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `tree_sitter_languages/__init__.py`.
 - Total lines of Python code added: 68.
 - Total lines of Python code deleted: 5.
2023-06-27 01:21:57 +01:00
github-actions[bot]
43720bcbab [stubsabot] Bump Flask-Cors to 4.0.* (#10363)
Release: https://pypi.org/pypi/Flask-Cors/4.0.0
Homepage: https://github.com/corydolphin/flask-cors
Diff: https://github.com/corydolphin/flask-cors/compare/3.0.10...v4.0.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 5 files included in typeshed's stubs have been modified or renamed: `flask_cors/__init__.py`, `flask_cors/core.py`, `flask_cors/decorator.py`, `flask_cors/extension.py`, `flask_cors/version.py`.
 - Total lines of Python code added: 50.
 - Total lines of Python code deleted: 41.
2023-06-27 01:20:14 +01:00
Alex Waygood
1b2e4091db Bump mypy to 1.4.1 (#10351) 2023-06-25 16:45:09 -07:00
Nikita Sobolev
d492efeaea email.utils.localtime: py312 updates (#10358) 2023-06-25 12:02:11 +01:00
github-actions[bot]
ca13bcc286 [stubsabot] Bump pyinstaller to 5.13.* (#10357)
* [stubsabot] Bump pyinstaller to 5.13.*

Release: https://pypi.org/pypi/pyinstaller/5.13.0
Homepage: https://www.pyinstaller.org/
Diff: https://github.com/pyinstaller/pyinstaller/compare/v5.12.0...v5.13.0

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `PyInstaller/hooks/pre_safe_import_module/hook-distutils.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 4 files included in typeshed's stubs have been modified or renamed: `PyInstaller/__init__.py`, `PyInstaller/building/api.py`, `PyInstaller/building/build_main.py`, `PyInstaller/compat.py`.
 - Total lines of Python code added: 962.
 - Total lines of Python code deleted: 648.

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

* Update compat.pyi

---------

Co-authored-by: stubsabot <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-25 09:46:19 +01:00
Sujal Gupta
575dd0c448 Add _file attribute to SpooledTemporaryFile (#10327)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-06-24 17:09:51 +03:00
Avasam
5af30e8620 Bump pyright to 1.1.315 and fix openpyxl tests (#10356) 2023-06-23 16:35:37 -07:00
Anthony Sottile
c1df736a8c Add _is_text_encoding attribute of CodecInfo (3.4+) (#10354)
Introduced in https://bugs.python.org/issue19619. Was meant to be a temporary private API, but no public API has emerged in the years since.
2023-06-23 15:35:33 +01:00
Sebastian Rittau
b10f482e36 Bump mysqlclient to 2.2 (#10353)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-23 12:41:55 +01:00
Alex Waygood
c63dd5941f Improve how we run pyright in CI (#10258)
Avoid using the deprecated `--venv-path` command-line argument
2023-06-23 09:26:19 +01:00
github-actions[bot]
c402107f8a [stubsabot] Mark stdlib-list as obsolete since 0.9.0 (#10348)
Release: https://pypi.org/pypi/stdlib-list/0.9.0
Homepage: https://pypi.org/project/stdlib-list/
Diff: https://github.com/pypi/stdlib-list/compare/v0.8.0...v0.9.0
2023-06-23 07:17:04 +01:00
Jonathan Vanasco
4c1e94d8e0 Add missing constants to OpenSSL/crypto.pyi (#10345)
Adds typing for missing constants `TYPE_DH` and `TYPE_EC`

See https://github.com/pyca/pyopenssl/blob/main/src/OpenSSL/crypto.py#L94-L95
2023-06-21 20:21:17 +01:00
Alex Waygood
4a692fc546 Fix stubtest for py312b3 (#10343) 2023-06-21 15:46:50 +01:00
Kirill Podoprigora
f3a0be32fe Add is_cli param to pydoc.pyi (#10331) 2023-06-21 14:58:03 +01:00
Alex Waygood
6652add920 CI: run more jobs on py311 (#10342) 2023-06-21 06:54:49 -07:00
Sebastian Rittau
c3ddf3201a Bump croniter to 1.4 (#10341)
Also require `bytes` for all `hash_id`s for consistency, even
if some methods might work with other types as well. But
using other types might hint at some inconsistent type
usage and be a source of possible bugs.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 14:37:30 +01:00
James Hilton-Balfe
4cfc49882e Rename Generator-like type params to be more obvious (#10330)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 13:50:33 +01:00
Sebastian Rittau
06c2fb047a Bump setuptools to 68.0 (#10339)
* Any -> Incomplete in a few files
* Bump setuptools to 68.0.*

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 13:26:55 +01:00
Oscar
aeb3bf7099 Add pexpect stubs (#10300) 2023-06-21 14:03:27 +02:00
FasterSpeeding
a46fe43477 [mock] take an iterable of calls for assert_has_awaits(#10337) 2023-06-20 18:21:05 -07:00
FasterSpeeding
f1543903c6 use ParamSpec in patch in mock stubs (#10338) 2023-06-20 18:20:49 -07:00
Alex Waygood
007a65a7fe CI: Pin Python to 3.7.16 for stubtest runs on macos (#10336) 2023-06-20 16:35:28 -07:00
Alex Waygood
8ec2323c0a Replace static assertion that fails with pyright (#10335)
See https://github.com/python/typeshed/pull/10325#issuecomment-1598684045

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-06-20 14:56:14 +01:00
Shantanu
9e86c6026a unittest.mock: use ParamSpec in patch (#10325)
Fixes #10324
2023-06-20 13:48:49 +02:00
Shantanu
7114aecf77 inspect: getmodulename takes a PathLike as well as str (#10329)
Fixes #10328
2023-06-18 21:19:57 +01:00
David Salvisberg
df795220a3 Add stubs for WebOb (#9874)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-06-18 07:32:49 -07:00
github-actions[bot]
7544b60db7 [stubsabot] Bump hdbcli to 2.17.* (#10320)
Release: https://pypi.org/pypi/hdbcli/2.17.14
Homepage: https://www.sap.com/

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 <>
2023-06-15 20:09:55 -07:00
Avasam
67fb6c0cab Type openpyxl incomplete dunders (#10313) 2023-06-15 17:38:02 +02:00
Alex Waygood
c38fc45d9c Make CVE-2020-10735 allowlist entries Windows-only (#10318) 2023-06-14 10:36:24 -07:00