Commit Graph

8304 Commits

Author SHA1 Message Date
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
Mark Hetherington
1053e923cd oauthlib: Update types for RequestValidator to match implementation (#10725) 2023-09-18 11:07:44 +02:00
github-actions[bot]
03ce77a12c [stubsabot] Bump pytz to 2023.3.post1 (#10673)
Release: https://pypi.org/pypi/pytz/2023.3.post1
Homepage: http://pythonhosted.org/pytz
Repository: https://github.com/stub42/pytz
2023-09-17 12:58:55 +01:00
github-actions[bot]
cecab9c6ea [stubsabot] Bump flake8-bugbear to 23.9.16 (#10720)
Release: https://pypi.org/pypi/flake8-bugbear/23.9.16
Homepage: https://github.com/PyCQA/flake8-bugbear
Repository: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/23.7.10...23.9.16

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `tests/b902_extended.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `bugbear.py`.
 - Total lines of Python code added: 352.
 - Total lines of Python code deleted: 286.

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-09-17 01:22:41 +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
Anders Kaseorg
0ea043253e Fix psycopg2.sql.SQL.join annotation (#10716) 2023-09-15 20:16:47 +02:00
Viicos
bbd9dd1c4f Update restval/restkey types in csv.DictReader (#10696) 2023-09-13 12:38:01 +02:00
Ali Hamdan
71a35b4343 psycopg2: Add missing modules, add annotations (#10630) 2023-09-13 12:11:54 +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
Sebastian Rittau
c31e12fff1 [redis] Don't recommend uninstalling types-redis (#10694) 2023-09-12 17:49:26 +02:00
Alex Waygood
66771da404 Always install six when stubtesting types-google-cloud-ndb (#10704)
Fixes #10703
2023-09-12 15:00:44 +01:00
Avasam
32535ee895 openpyxl: Typed from_tree methods (#10602) 2023-09-11 16:43:16 +02:00