Commit Graph

8428 Commits

Author SHA1 Message Date
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
Jelle Zijlstra
5beddbe883 Add PEP 706 filters to tarfile (#10316)
Fixes #10315

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2023-06-14 15:08:32 +01:00
Sebastian Rittau
5f9d05c7f5 TemporaryFile(): Handle one more case correctly (#10284) 2023-06-14 05:33:01 -07:00
Alex Waygood
6e90fce4b8 Update pyright to 1.1.314 (#10317) 2023-06-14 10:33:01 +02:00
Avasam
8624edd3a5 openpyxl: type tagname, namespace and __doc__ ClassVar and params (#10308) 2023-06-14 07:24:44 +02:00
Avasam
8e4595a168 Type all openpyxl constants (#10312) 2023-06-13 09:11:56 +02:00
Avasam
d622a2755d Update vscode recommended settings (#10314) 2023-06-13 09:09:19 +02:00
Sebastian Rittau
ce222e5cd7 Split requirements file into sections (#10309)
Also note that type checkers and linters should be pinned to a specific
version.
2023-06-12 20:18:16 +02:00
Sebastian Rittau
be925c0d3f Check that linters/type checkers are pinned to an exact version (#10311) 2023-06-12 20:12:14 +02:00
Sebastian Rittau
5092f52c45 Update description of test scripts (#10310) 2023-06-12 18:42:33 +01:00
Andrew Sansom
9ca4724204 argparse: Add overloads for arg parser methods (#10307) 2023-06-12 18:43:07 +02:00
Avasam
8c582c4459 Complete openpyxl's nested descriptors (#10298) 2023-06-12 16:46:02 +02:00
Denis Laxalde
fce4fe7b88 psutil: import platform-specific 'pio' definitions (#10305) 2023-06-12 12:53:22 +02:00
Nikita Sobolev
75fc33d8d0 Update zoneinfo for Python3.12 (#10304) 2023-06-12 12:34:03 +03:00
Denis Laxalde
85a6dd14e1 psutil: declare return type of io_counters() (#10303) 2023-06-12 10:33:51 +02:00
github-actions[bot]
6a94c9d677 [stubsabot] Bump ujson to 5.8.* (#10302)
Release: https://pypi.org/pypi/ujson/5.8.0
Homepage: https://github.com/ultrajson/ultrajson
Diff: https://github.com/ultrajson/ultrajson/compare/5.7.0...5.8.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 15.
 - Total lines of Python code deleted: 17.
2023-06-12 01:25:12 +01:00
Oleg Höfling
052d2b9f3a Fix base class for email.generator.BytesGenerator (#10299)
And use `Self` as the return type for `email.generator.Generator.clone`.

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2023-06-11 17:02:32 +01:00
Oleg Höfling
c88ce93614 Use Self as the return type for email.policy.Policy.clone (#10301)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2023-06-11 16:36:45 +01:00
Alex Waygood
640676bdb2 Mark arguments of typing.NamedTuple.__init__ as positional-only (#10292) 2023-06-11 12:28:01 +02:00
Sam Bull
e11dbc20da Add missing __eq__ to Mapping (#10297)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-10 13:56:08 +01:00
Nikita Sobolev
0b98780c81 Add new http.HTTPStatus/__init__.pyi for Python3.12 (#10296) 2023-06-10 10:34:28 +01:00
Nikita Sobolev
0aa5dd57e5 Update ctypes stubs for Python 3.12 (#10290)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-09 19:55:03 +01:00
Nikita Sobolev
1851423519 Fix CI for Python 3.12.0b2 (#10291) 2023-06-09 18:17:30 +01:00
Nikita Sobolev
258cabe3a1 Update uuid.pyi for Python3.12 (#10289) 2023-06-09 09:33:08 +01:00
Nikita Sobolev
f0e9ec11e4 Add AsyncGeneratorType.ag_suspended (#10288)
New in Python 3.12
2023-06-09 08:40:23 +01:00
github-actions[bot]
919f1d0aca [stubsabot] Bump pyinstaller to 5.12.* (#10287)
Release: https://pypi.org/pypi/pyinstaller/5.12.0
Homepage: https://www.pyinstaller.org/
Diff: https://github.com/pyinstaller/pyinstaller/compare/v5.11.0...v5.12.0

Stubsabot analysis of the diff between the two releases:
 - 2 public Python files have been added: `tests/functional/scripts/pyi_lazy_import.py`, `tests/functional/test_import_lazy_loader.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 6 files included in typeshed's stubs have been modified or renamed: `PyInstaller/__init__.py`, `PyInstaller/building/build_main.py`, `PyInstaller/building/splash.py`, `PyInstaller/compat.py`, `PyInstaller/lib/modulegraph/modulegraph.py`, `PyInstaller/utils/win32/versioninfo.py`.
 - Total lines of Python code added: 647.
 - Total lines of Python code deleted: 887.
2023-06-09 08:37:37 +01:00
Nikita Sobolev
852ac3efb3 Update _thread.pyi for Python3.12 (#10285) 2023-06-08 15:23:57 +02:00
Shantanu
36efbf89ed ftplib: update for py312 (#10282) 2023-06-08 00:57:44 -07:00
Nikita Sobolev
0045299d43 Update token.pyi and tokenize.pyi for Python3.12 (#10283) 2023-06-08 08:38:36 +01:00
Nikita Sobolev
8528888691 Update multiprocessing.pyi for Python3.12 (#10279) 2023-06-08 08:37:44 +01:00
Nikita Sobolev
23bb0494ab Update pkgutil.pyi for Python3.12 (#10281) 2023-06-08 08:37:15 +01:00
Shantanu
d778855052 webbrowser: update for py312 (#10280) 2023-06-08 08:14:10 +01:00
Nikita Sobolev
8eb5751084 Module imp was removed in 3.12 (#10278) 2023-06-08 07:49:25 +01:00
Sebastian Rittau
0fe724dfab Tighten tempfile() return types (#10232) 2023-06-07 21:57:13 -07:00
Mehdi Drissi
7da4847b1a Tensorflow losses (#10264)
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com>
2023-06-07 21:46:34 -07:00
Jeff Dairiki
4849ddd74a inifile: add missing attributes (#10273)
And make many attributes read-only. The primary entry point to this module in `IniFile` (or its subclass
`AppIniFile`). Since the config file is read (from `filename`) and
parsed (using the `dialect`) in the `IniFile` constructor, modifying
attributes like `IniFile.filename` or `IniFile.dialect` after
construction is likely to cause problems.
2023-06-07 23:00:49 +01:00
Nikita Sobolev
b0a3917145 Update dis.pyi and opcode.pyi for Python3.12 (#10276) 2023-06-07 20:33:50 +01:00
Nikita Sobolev
f10b5fb9b6 Update locale.pyi for Python3.12 (#10274) 2023-06-07 19:41:07 +01:00
Sebastian Rittau
786bd22343 [aiofiles] Use file mode alias from _typeshed (#10233) 2023-06-07 06:14:03 -07:00
Shantanu
e1ab1ad2fb calendar: update for py312 (#10216) 2023-06-07 00:52:19 -07:00
Alex Waygood
85bdd0a16d Update pyright to 1.1.312 (#10271)
Should unblock #10216 and #10258
2023-06-07 08:39:50 +01:00
Alexander Burchenko
46de19d2cf add boltons (#8892)
Co-authored-by: Andrey Maslennikov <andrew.maslennikov@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-06-07 07:54:37 +01:00