Commit Graph

8319 Commits

Author SHA1 Message Date
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
Harshal Sheth
ec52bf1add [requests] loosen HTTPError constructor (#10776) 2023-09-27 08:02:46 +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
Alex Waygood
5e7090ce4b Skip all parts of the daily test on forks of typeshed (#10782)
We skip 2/3 jobs in the daily test when running on forks:

b23042e854/.github/workflows/daily.yml (L33)

b23042e854/.github/workflows/daily.yml (L59)

But we missed this condition for the stub-uploader part

Fixes #10781
2023-09-26 20:19:43 +01: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
Alex Waygood
3f9a3accc8 Declare that types-jsonschema requires Python 3.8+ (#10775) 2023-09-25 20:10:12 +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
Aarni Koskela
3446594f0e [requests] Allow PreparedRequest for RequestException(request=...) (#10767) 2023-09-25 12:46:14 +02:00
Mikhail Samylov
d30bdc601d CONTRIBUTING.md: Avoid user mistake in the script; small fixes (#10765) 2023-09-25 12:44:06 +02:00
Sohang Chopra
da187a99a6 Add stubs for Flask-SocketIO (#10735)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-09-25 10:52:17 +01: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
Ali Hamdan
dd00f9d899 Complete psycopg2 (#10760) 2023-09-24 13:48:01 -07:00
Ali Hamdan
c5dde1e720 Add optional requires_python field to third-party stubs metadata (#10724)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-24 18:39:12 +01: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
github-actions[bot]
13359d1281 [stubsabot] Bump flake8-simplify to 0.21.* (#10755)
Release: https://pypi.org/pypi/flake8-simplify/0.21.0
Homepage: https://github.com/MartinThoma/flake8-simplify
Repository: https://github.com/MartinThoma/flake8-simplify
2023-09-24 01:16:29 +01:00
Alex Waygood
e40b5be2ea Speedup regr_test.py by running test cases concurrently (#10714) 2023-09-23 15:39:24 +01:00
Pascal Corpet
e6fb59c994 [PyYAML] type the whole Emitter class (#10750) 2023-09-23 07:07:09 -07:00
Alex Waygood
e1b60060ec Do a dry run of stubsabot on PRs touching scripts/ or tests/ (#10508) 2023-09-22 20:36:21 -07:00
Sebastian Rittau
6ca7505af7 Bump jsonschema to 4.19.* (#10583)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-22 20:11:54 -07: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
Avasam
381fc572a8 Complete openpyxl metaclasses (#10736) 2023-09-22 19:45:08 -07:00
Marti Raudsepp
71d81f886d [requests] Improve exception class constructors (#10740) 2023-09-22 19:42:58 -07:00
Avasam
c782b47aa0 Update pyscreeze methods reusing locateAll (#10741) 2023-09-22 19:42:34 -07:00
Amin Alaee
6ed18ec37a Add overloads to redis.asyncio.Redis (#10742) 2023-09-22 19:40:17 -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
Alex Waygood
53422f8918 pytype_test.py: Handle non-typeshed requirements that are stub-only packages (#10723) 2023-09-20 20:03:01 +01:00
Amin Alaee
11e51bef9d [pytz] Add BaseTzInfo private attributes (#10733) 2023-09-20 15:17:40 +02:00
Erik Bjäreholt
ddebb83ea7 requests: type RequestException members (not Any) (#8989)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-20 05:20:33 -07:00
Nikita Sobolev
7ead6dffae Bump pyright to 1.1.328 (#10739)
https://github.com/microsoft/pyright/releases/tag/1.1.328
2023-09-20 08:37:19 +01:00
Jelle Zijlstra
31495e53bd typing.pyi: IO.name may be bytes (#10738) 2023-09-20 08:24:22 +02:00
Ruslan Nigmatullin
aef4fa8756 Update protobufs to support new generated messages (#10717) 2023-09-19 13:16:40 -07:00
Sebastian Law
d56b0b80d8 define slots on abc.ABC (#10730) 2023-09-19 13:35:13 +01:00
Nikita Sobolev
2c05c02b36 Update netaddr to 0.9.0 (#10732) 2023-09-19 12:33:02 +01:00
Alex Waygood
8597724ac1 Update typing_extensions stubs for v4.8.0 (#10726) 2023-09-18 11:30:28 +01:00