Commit Graph

5266 Commits

Author SHA1 Message Date
Alex Waygood
e4edcf23e0 Fix platform availability of some Unix constants (#10857) 2023-10-07 15:05:20 -07:00
Nikita Sobolev
8acf1944f3 Remove allowlist entries for _ctypes on win (#10855) 2023-10-07 21:43:33 +02:00
Nikita Sobolev
fb994e344b Fix ssl.SSLSocket methods on windows (#10849) 2023-10-07 07:50:52 +01:00
Nikita Sobolev
48d4f7a6a5 Add winreg.HKEYType.handle property (#10848) 2023-10-06 19:20:12 +01:00
Nikita Sobolev
a12b2053cd Add SetErrorMode to msvcrt module (#10842) 2023-10-05 22:06:11 +01:00
James Hilton-Balfe
25eb99cbec Add better types for asyncio.gather (#9678) 2023-10-04 10:10:41 +01:00
Nikita Sobolev
cc5b3f8bc4 Fix platform availability of some os/posix constants (#10831) 2023-10-03 15:20:00 +01:00
Alex Waygood
860e34eec9 Fix allowlist entries in asyncio.windows_events (#10824)
And fix the return value of return value of `IocpProactor.recvfrom_into()`, which was incorrect

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-10-02 16:04:11 +01:00
Alex Waygood
54d825af59 Fix Windows-specific allowlist entries in _msi, msilib, selectors and subprocess (#10822) 2023-10-02 13:01:47 +02:00
Nikita Sobolev
07e611d41f select.POLLRDHUP does not exist on macos (#10823) 2023-10-02 11:59:29 +01:00
Nikita Sobolev
66d183fc56 mimetypes.MimeTypes.read_windows_registry always exists (#10821) 2023-10-02 11:35:48 +01:00
Nikita Sobolev
b3b5661f80 Add DefaultSelector.fileno on platforms where it exists (#10820) 2023-10-02 11:15:49 +01:00
Alex Waygood
205cfcfca6 Fix availability of some constants for Windows (#10818) 2023-10-01 16:27:55 -07:00
Alex Waygood
efa7a51d09 Add a few missing things on Windows, py310+ (#10817) 2023-10-01 23:30:44 +01:00
bzoracler
3eb9ff7f65 fix __match_args__ attribute name (#10813) 2023-10-01 07:51:02 -07:00
Nikita Sobolev
bd4462cc62 Re-export SYSPROTO_CONTROL and PF_SYSTEM in socket on macos (#10814) 2023-10-01 15:38:44 +01:00
Nikita Sobolev
460fa14dfc Fix curses.color_pair signature (#10811)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-30 20:58:37 +01:00
Nikita Sobolev
16b9884601 Fix _posixsubprocess module for python3.12 (#10809) 2023-09-30 17:51:33 +01:00
Nikita Sobolev
4c5d3e5ad2 Some curses functions were removed in 3.12 for macos (#10808) 2023-09-30 11:28:09 +02:00
Nikita Sobolev
7cf1fed75d Fix sigtimedwait and sigwaitinfo signature (#10803) 2023-09-29 12:38:14 -07:00
Nikita Sobolev
1ac5b7b1ac Add x_exports to xxlimited (#10802) 2023-09-29 10:54:58 +02:00
Sebastian Rittau
7cc2282959 [ctypes] Add note about atypical classmethod behavior (#10795) 2023-09-28 22:28:10 -07:00
Imogen
b76b2afdf3 Fix typings for unittest.TestCase.assertLessEqual (#10798) 2023-09-29 01:03:20 +02:00
Sebastian Rittau
6074a8f544 [tty] py312: Fix return types of set(raw|cbreak) (#10785)
Also add `termios._AttrReturn` type alias to be used in tty
2023-09-28 07:15:20 -07:00
Amin Alaee
4ea52b3bcf Update resource.prlimit for Python 3.12+ (#10794)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-28 13:59:51 +01:00
Amin Alaee
ac4f4a4c94 Add os.setns for Linux on Python 3.12+ (#10789) 2023-09-28 13:53:25 +02:00
Amin Alaee
c6161f7108 Limit os.sendfile arguments based on platform (#10790) 2023-09-28 13:36:25 +02:00
Denis Laxalde
24712f66a9 Add SimpleHTTPRequestHandler's directory attribute (#10788) 2023-09-28 13:20:19 +02:00
Nikita Sobolev
c9835481e3 Add MAP_STACK to mmap module (#10792)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-28 11:12:41 +01:00
Amin Alaee
99ce091f17 Make os.setresuid and os.setresgid positional-only (#10791) 2023-09-28 10:10:21 +01:00
Nikita Sobolev
4dad5311d5 Update tty to python 3.12 (#10784) 2023-09-27 11:15:32 +02:00
bzoracler
8d0bdfe9ea add missing method stub for match_case node (#10783)
`match_case` is a leaf node and is a valid target for `visit_*`. See 2ef2fffe3b/Lib/ast.py (L1697-L1704)
2023-09-26 13:27:11 -07:00
Nikita Sobolev
b23042e854 ssl.OP_ENABLE_KTLS should exist on linux (#10778) 2023-09-26 09:48:00 +02:00
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