Commit Graph

4897 Commits

Author SHA1 Message Date
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
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
Shantanu
e1ab1ad2fb calendar: update for py312 (#10216) 2023-06-07 00:52:19 -07:00
Nikita Sobolev
e347af1d59 Update functools.pyi for Python3.12 (#10269) 2023-06-06 22:48:36 +01:00
Shantanu
fceb3ae225 argparse: improve add_argument_group and add_mutually_exclusive_group (#10262) 2023-06-06 08:27:51 +02:00
Nikita Sobolev
9456f5501b Update socket stubs for Python3.12 (#10247)
Docs: https://github.com/python/cpython/blob/3.12/Doc/library/socket.rst
Source: https://github.com/python/cpython/blob/3.12/Modules/socketmodule.c#L8441
2023-06-05 09:32:02 +01:00
Nikita Sobolev
59d08c00d5 Update sys.pyi for Python3.12 (#10245)
Source: https://github.com/python/cpython/blob/3.12/Python/sysmodule.c
Docs: https://github.com/python/cpython/blob/3.12/Doc/library/sys.rst
2023-06-05 09:07:37 +01:00
Shantanu
a770216434 Make stubtest work better on macOS (#10263) 2023-06-04 16:10:15 -07:00
Shantanu
f8dfacb851 pathlib: more changes for py312 (#10261) 2023-06-05 00:04:59 +01:00
Shantanu
ef41a9ff1a Remove venv for stubtest stdlib (#10259) 2023-06-04 14:35:40 -07:00
Alex Waygood
cf25698325 tempfile: more updates for py312 (#10256) 2023-06-04 12:13:12 -07:00
Alex Waygood
c3791d024a pathlib: is_mount() is implemented on Windows on py312+ (#10257) 2023-06-04 12:09:06 -07:00
Shantanu
7df870f452 Run stubtest for Python 3.12 (#10253) 2023-06-04 05:53:03 -07:00
Nikita Sobolev
c1a857a41a distutils package was removed in 3.12 (#10249) 2023-06-03 22:08:09 -07:00
Shantanu
be85cc7121 builtins: updates for py312 (#10211)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-06-04 01:05:40 +01:00
Nikita Sobolev
b25150aa30 py312: Add delete=True parameter to tempfile.TemporaryDirectory (#10244)
Source: https://github.com/python/cpython/blob/3.12/Lib/tempfile.py#L864
2023-06-03 14:30:30 +01:00
Nikita Sobolev
e5651db430 Update socketserver for Python3.12 (#10246)
Source: https://github.com/python/cpython/blob/3.12/Lib/socketserver.py
2023-06-03 13:53:51 +01:00
Nikita Sobolev
c85f7de957 Update csv stubs for Python3.12 (#10250) 2023-06-03 13:45:43 +01:00
Jelle Zijlstra
628c88d995 Update ast for 3.12 (#10201) 2023-06-02 17:11:13 -07:00
Nikita Sobolev
185faf00cd Update threading for py312 (#10241)
Add `setprofile_all_threads` and `settrace_all_threads`
2023-06-02 16:27:54 +01:00
Nikita Sobolev
178184c949 Update zipimport for python3.12 (#10240)
The `find_loader` and `find_module` methods were removed: https://github.com/python/cpython/blob/3.12/Lib/zipimport.py
2023-06-02 16:11:13 +01:00
Nikita Sobolev
6de0aa0c70 CI: Unpin micro-versions (#10239) 2023-06-02 11:23:33 +01:00
Kyle Benesch
cbd51e544d Make sys.UnraisableHookArgs a Protocol (#10227) 2023-06-01 09:57:59 +02:00
Jason Rensburger
9641c6c9cc weakref.WeakMethod callback arg type (#10197)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-05-29 06:31:56 -07:00
Shantanu
d6a85e2c48 Attempt to clarify the ByteString situation (#9783)
See https://github.com/python/cpython/issues/102092

This makes the behaviour of typing.ByteString better match its
documentation.
2023-05-27 21:37:38 -07:00
Jelle Zijlstra
c0a0c34020 Use PEP 688 (#10225)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-27 19:55:30 -07:00
Ali Hamdan
56aeeb677f Fix groups type in argparse.HelpFormatter (#10226) 2023-05-27 14:44:04 +02:00
Alex Waygood
a4856c5650 shutil.rmtree: Add onexc parameter; add parameter defaults (#10219) 2023-05-25 23:38:21 -07:00
Shantanu
cf6fb07f2f math: updates for py312 (#10213) 2023-05-25 20:21:40 +01:00
Shantanu
b7d927a53f random: update for py312 (#10214)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-25 18:49:51 +01:00
Shantanu
9a0d1e9bb9 statistics: update for py312 (#10217)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-25 18:48:01 +01:00
Alex Waygood
bb701b09db Improve NamedTuple stubs (#10220) 2023-05-25 08:37:52 -07:00
Alex Waygood
4190dbca10 Add __orig_bases__ to TypedDict classes (#10221) 2023-05-25 08:34:31 -07:00
Shantanu
7994f165da json: add AttrDict in py312 (#10212) 2023-05-25 13:31:30 +01:00
Shantanu
854c453910 fractions: remove _normalize, update for py312 (#10218) 2023-05-25 10:21:19 +01:00
Shantanu
a4e33d4053 shutil.unpack_archive: update for py312 (#10215)
Add the new "filter" parameter
2023-05-25 09:53:25 +01:00
Shantanu
1eeab77254 Update VERSIONS for the death of smptd (#10210) 2023-05-25 09:49:18 +01:00
Nikita Korolev
7ffb7cef69 SysLogHandler facility could be a string (#10206)
It is possible to pass syslog facility as string to __init__ too
2023-05-24 19:46:37 -07:00
Jelle Zijlstra
185adf01a9 Clean up stubtest allowlist for typing (#10205) 2023-05-24 20:33:46 +01:00
Jelle Zijlstra
e4dcfccbd5 Update typing-extensions; some 3.12 updates (#10200)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-24 11:06:55 -07:00
Nikita Sobolev
e666602d14 asyncore and asynchat will be removed in 3.12 (#9033) 2023-05-23 19:16:25 +02:00
Ali Hamdan
ca701f0ef3 Type argparse.HelpFormatter._Section (#10191)
The python type system doesn't provide a way to fully express the type of
`self.NestedClass` with inheritance but this change is still an improvement
over the `Any` annotations. The usage of `_Section` is rare and subclassing
it is even rarer so this shouldn't cause trouble.
2023-05-22 07:39:46 -07:00
Nikita Sobolev
f7d7bb53ca Change asyncio.Task.__init__ signature for Python 3.12 (#10184) 2023-05-15 13:34:45 +02:00
Nikita Sobolev
b25a5b6aef Use _AwaitableLike in EventLoop.run_until_complete (#10181) 2023-05-15 09:34:50 +01:00