Commit Graph

5033 Commits

Author SHA1 Message Date
Nikita Sobolev
9f4edca70e Update os and posix to python 3.12 on darwin (#10779) 2023-09-26 09:46:29 +02:00
Nikita Sobolev
df2efe6102 Update fcntl to python 3.12 (#10774) 2023-09-25 10:38:48 -07:00
Amin Alaee
9e79a100b3 Add os.splice and flags on Linux for Python 3.10+ (#10771) 2023-09-25 17:20:37 +02:00
Alex Waygood
a0b2583bb1 Add OrderedDict.__(r)or__ (#10770) 2023-09-25 06:47:02 -07:00
Amin Alaee
e69545844b Add os.eventfd, os.eventfd_read and os.eventfd_write to Linux for Python 3.10+ (#10768)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-25 14:10:56 +01:00
plokmijnuhby
cec86eb22e Replace __init__ with __new__ in builtins and types (#10761) 2023-09-25 14:12:23 +02:00
Nikita Sobolev
4c4278e80c Use Literal values for sys.version_info.release_level (#10763) 2023-09-25 07:20:53 +01:00
Alex Waygood
5b8193b9fd ast.NodeVisitor: add the visit_foo methods for PEP-695 (#10759) 2023-09-24 16:10:16 -07:00
plokmijnuhby
b1d4f29ed4 Add definition for visit_MatchSingleton to ast.NodeVisitor (#10758) 2023-09-24 16:26:17 +01:00
Amin Alaee
0a92429627 Add os.unshare clone flags for Linux, Python 3.12+ (#10757) 2023-09-24 16:23:30 +01:00
Amin Alaee
8c4dd38840 Make syslog setlogmask, LOG_MASK and LOG_UPTO positional-only (#10756)
Make syslog setlogmask, LOG_MASK, LOG_UPTO positional-only
2023-09-24 11:23:11 +01:00
Screwtapello
49b717ca52 stdlib/xml/sax: Add type annotations (#10606)
* stdlib/xml/sax: Type annotations for commonly used methods.

* stdlib/xml/sax: More annotations.

It turns out SAX's definition of a "qname" is exactly the opposite of
ElementTree's. With that understanding, let's annotate the Attributes*Impl
classes too.

* stdlib/xml/sax: I better understand what AttributesNSImpl is doing now.

* Update third-party library stubs to agree with the new SAX annotations.
2023-09-22 20:08:13 -07:00
plokmijnuhby
41bfc12065 Add a case where zip() can be called with no arguments (#10648) 2023-09-22 20:00:08 -07:00
Ali Hamdan
2b323bed50 Add typeshed aliases to the types accepted by int and float constructors (#10707)
Ref https://github.com/python/typeshed/pull/10630#discussion_r1321646168
2023-09-22 19:50:43 -07:00
Amin Alaee
96eaa767dd Update os on Windows, Python3.12+ (#10749)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-22 16:12:50 +01:00
Amin Alaee
6dfa285230 Add os.EX_OK on Windows, Python 3.11+ (#10748) 2023-09-22 12:51:22 +01:00
Tomás Farías Santana
a76978b28f Add _thread attribute for logging.handlers.QueueListener (#10747) 2023-09-22 01:54:19 +03:00
Jelle Zijlstra
31495e53bd typing.pyi: IO.name may be bytes (#10738) 2023-09-20 08:24:22 +02:00
Sebastian Law
d56b0b80d8 define slots on abc.ABC (#10730) 2023-09-19 13:35:13 +01:00
Alex Waygood
8597724ac1 Update typing_extensions stubs for v4.8.0 (#10726) 2023-09-18 11:30:28 +01:00
Randolf Scholz
6bf23949b5 types.EllipsisType was added in Python 3.10 (#10719) 2023-09-17 00:50:33 +02:00
Nikita Sobolev
d88205caee Make all protocols' param names pos-only in codecs.pyi (#10713) 2023-09-16 15:54:18 +02:00
Viicos
bbd9dd1c4f Update restval/restkey types in csv.DictReader (#10696) 2023-09-13 12:38:01 +02:00
Petter Friberg
c9bf034dd4 Make http.cookies.SimpleCookie non-generic (#10701) 2023-09-13 12:07:02 +02:00
Petter Friberg
d88398b923 Make value_decode and value_encode of BaseCookie return 2-tuple (#10702) 2023-09-13 09:21:25 +02:00
Rebecca Chen
f0a79939ae Fix typo in functools.pyi: _RWapper -> _RWrapper. (#10705) 2023-09-12 19:55:01 +01:00
Akuli
fbd7963fd6 Delete tkinter._ExceptionReportingCallback (#10689)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-12 20:16:47 +03:00
Alex Waygood
23249c07a9 Update enum for py312 (#10670) 2023-09-11 11:26:18 +01:00
Alex Waygood
a570fb6ced Fix various stubtest complaints on Python 3.12 (#10691) 2023-09-10 14:54:43 -07:00
Alex Waygood
6dda2fe9c8 Fix stubtest complaints for various .get() methods (#10690) 2023-09-10 14:48:09 -07:00
Marc Mueller
0bc34fc49c Fix importlib.util.source_hash return annotation (#10686) 2023-09-08 16:07:02 -07:00
Alex Waygood
c50a708818 Update poplib and smtplib for py312 (#10685) 2023-09-08 18:42:03 +01:00
Nikita Sobolev
53144ca572 Update importlib.metadata to 3.12 (#10665) 2023-09-08 12:42:56 +01:00
Alex Waygood
6eec191739 Improve the accuracy of (default)dict.__(r)or__ (#10679) 2023-09-08 11:22:17 +01:00
Shantanu
4df9634427 Remove pathlib.PurePath.__eq__ (#10662)
Fixes #10661

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-07 00:40:24 -07:00
Alex Waygood
fecb84eb05 Update asyncio.tasks for py312 (#10669)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2023-09-06 12:35:48 +01:00
Alex Waygood
433204fb8f py312: Fix stubtest nits in typing/typing_extensions (#10659) 2023-09-04 15:39:11 +01:00
Nikita Sobolev
d868dad76b Update importlib.metadata to 3.12 (#10654) 2023-09-03 09:47:19 +01:00
Nikita Sobolev
d13d9859f6 Update zipfile to 3.12 (#10647)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-02 16:01:41 +01:00
Nikita Sobolev
f0ba5ba2a2 Update unittest.mock to 3.12 (#10650)
And harmonise some annotations between the stdlib `unittest.mock` module and the third-party `mock` backport package.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-02 15:03:39 +01:00
Nikita Sobolev
454438e4db Update importlib.resources to 3.12 (#10649) 2023-09-02 00:03:08 -07:00
Jun Komoda
4009efa349 _CField as a generic descriptor protocol (#10595) 2023-09-01 16:23:33 +02:00
Nikita Sobolev
e04c440571 Update pathlib to 3.12 (#10646) 2023-09-01 14:53:58 +02:00
Alex Waygood
75da5de5c2 Many importlib removals in py312 (#10644) 2023-09-01 13:43:36 +02:00
Edgar Handal
374317a242 sqlite3: add Connection arg to cursorClass (#10645) 2023-09-01 13:40:50 +02:00
Nikita Sobolev
f28cb8b856 Update os.DirEntry to 3.12 (#10643) 2023-08-31 14:29:21 +01:00
Nikita Sobolev
8a2019aa7f Add isjunction and splitroot functions (#10642) 2023-08-31 13:14:22 +01:00
Alex Waygood
4ae6d38f96 Use latest Python for stubtest in CI (#10641) 2023-08-30 18:50:11 +02:00
Nikita Sobolev
6c2c164de2 unittest: py312 updates for load_tests and loadTestsFromModule (#10640) 2023-08-30 12:27:40 +01:00
Nikita Sobolev
c9583d9f14 Add durations to unittest in 3.12 (#10636) 2023-08-30 11:35:25 +01:00