Commit Graph

4387 Commits

Author SHA1 Message Date
Alex Waygood
edc0ecd857 Remove Python 3.6 branches from typeshed (#8269) 2022-07-11 10:55:17 +02:00
Spencer Brown
29c17ffb47 Improve tkinter.simpledialog (#8243) 2022-07-10 19:52:16 +03:00
q0w
4e4de7f660 sysconfig: Add get_default_scheme and get_preferred_scheme (#8265) 2022-07-10 12:31:40 +01:00
John Villalovos
38015e1935 imaplib: annotate imaplib.Commands (#8262)
Add type hints for `imaplib.Commands` which is defined here in
imaplib.py:
6442a9dd21/Lib/imaplib.py (L58-L102)

Closes #8261
2022-07-09 14:27:29 +05:30
Alex Waygood
fbddd2c4e2 stdlib: enforce CamelCase for type alias names (#8255) 2022-07-07 17:45:23 +02:00
Alex Waygood
abea36c069 Improve configparser alias names (#8254) 2022-07-07 16:17:09 +01:00
Kevin Kirsche
ccdb558af9 fix: Return Never rather than None from signal.default_int_handler (#8249) 2022-07-06 11:05:38 -07:00
Alex Waygood
fffb25201a Delete some works of fiction (#8247) 2022-07-06 22:49:18 +05:30
Florimond Manca
2792910ace Tweak pre-3.8 iscoroutine stub (#8104) 2022-07-06 13:28:43 +01:00
Sebastián Ramírez
55a52a8b28 Fix type annotation for traceback.StackSummary.from_list() to include FrameSummary items (#8244) 2022-07-06 11:00:35 +01:00
David Brownman
64554bdd5d add overload to tuple.__new__ to better express an empty tuple (#7454)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-05 17:28:08 -07:00
Alex Waygood
73974e974d Improve warnings.catch_warnings (#8229) 2022-07-04 17:05:21 +02:00
Chris Cotter
f7ff6239ff asyncio task factory can accept Coroutines too (#8205)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-03 18:00:29 +01:00
Alex Waygood
0cff7fea71 http.cookiejar.MozillaCookieJar.header does not exist in 3.10+ (#8228) 2022-07-03 09:42:14 -07:00
KotlinIsland
60a3cee609 __future__._Feature.getMandatoryRelease() can return None (#8232)
Co-authored-by: KotlinIsland <kotlinisland@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-03 13:27:52 +01:00
Alex Waygood
e19073e871 Add a tiny bit more special-casing for sum (#8231) 2022-07-02 20:05:56 +01:00
Alex Waygood
a2e8346d9a Improve multiprocessing stubs (#8202)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-07-01 23:50:39 +05:30
Alex Waygood
f69f711d5a subprocess.Popen: __new__ -> __init__ (#8203) 2022-06-28 20:11:03 +02:00
Alex Waygood
802f606a3b Improve turtle callbacks (#8200) 2022-06-28 14:30:50 +02:00
David Askari
2ffa756bb5 Improve None as predicate for Python 2 ifilter (#8191) 2022-06-28 14:29:42 +02:00
crusaderky
544c7c9633 shelve.open should return Any (#8190) 2022-06-27 10:15:09 -07:00
Alex Waygood
5b44454cf8 Improve inspect callbacks (#8189) 2022-06-27 07:07:09 -07:00
Alex Waygood
3e27458323 Improve xmlrpc.client callbacks (#8188) 2022-06-27 13:22:33 +01:00
Alex Waygood
208d8e1ec2 Fix assertAlmostEqual regression on mixed numeric types (#8137) 2022-06-27 08:57:36 +02:00
Alex Waygood
7c3b13ba4f asyncio.sslproto: _SSLPipe and several SSLProtocol attributes no longer exist on py311 (#8186) 2022-06-27 08:12:01 +02:00
Alex Waygood
8b3b6bf7cd stdlib: Audit Callable[<parameters>, None] annotations (#8187) 2022-06-27 08:08:28 +02:00
Alex Waygood
ca44b893e3 multiprocessing: audit callback annotations (#8178) 2022-06-26 13:15:26 +01:00
Alex Waygood
f812d71ffa Improve errno stubs on Windows and MacOS (#8142) 2022-06-26 08:29:02 +05:30
Alex Waygood
ca2f83a4cf typing_extensions: harmonise __all__ with __all__ at runtime (#8165) 2022-06-25 19:16:23 -07:00
Eric Werner
ec64372348 re-export HTTPError in urllib.request (#8146)
See cpython/#94204
2022-06-24 16:37:09 +02:00
Rohit Patil
d96581ec0f stdlib.xml: re-export ContentHandler & ErrorHandler (#8140)
fixes python/typeshed#8107
2022-06-22 21:22:33 +01:00
Alex Waygood
89f4dee452 Improve several __hash__ methods (#8128) 2022-06-22 11:58:00 +01:00
Alex Waygood
8826d3a36f Rename some confusingly named type aliases (#8129) 2022-06-21 20:51:05 +01:00
Theo Belaire
73ec67587c Replace str with bytes for imaplib append and ParseFlags (#8130)
Last Argument of APPEND
https://github.com/python/cpython/blob/main/Lib/imaplib.py#L1497
https://github.com/python/cpython/blob/main/Lib/imaplib.py#L413
You can see it's parsed with the bytes regex MapCLRF re.compile(br'\r\n|\r|\n')

https://github.com/python/cpython/blob/main/Lib/imaplib.py#L1497
You can see it's parsed with the bytes regex Flags
re.compile(br'.*FLAGS \((?P<flags>[^\)]*)\)')
2022-06-21 12:16:36 -07:00
Alex Waygood
67f377898b Add process_group argument to subprocess.{run, call, check_call, check_output} (#8125) 2022-06-21 07:44:20 -07:00
Alex Waygood
0740d1c48e asyncio.gather: Add overload for if no positional arguments are provided (#8126) 2022-06-21 15:31:40 +01:00
Alex Waygood
a01e0260b3 Add pipesize argument to subprocess.{run, call, check_call, check_output} (#8124) 2022-06-21 05:59:26 -07:00
Alex Waygood
cad42c7c7b asyncio.gather: Remove default values for return_exceptions: bool overloads (#8123) 2022-06-21 05:57:06 -07:00
Alex Waygood
f9e24680c3 Add new-in-3.9 parameters to subprocess.{run, call, check_call, check_output} (#8071) 2022-06-21 04:35:50 -07:00
KotlinIsland
35a59f6aa7 typing.AwaitableGenerator: add type_check_only (#8115) 2022-06-20 21:01:09 -07:00
Alex Waygood
c6de37df53 Overhaul socket stubs on Windows and MacOS (#8106)
Reduce the `socket` allowlists for these platforms to a handful of missing constants
2022-06-20 20:11:50 +01:00
Alex Waygood
538621e91b unittest.case: tighter annotations for various assertions (#8077) 2022-06-20 18:49:57 +02:00
Lefteris Karapetsas
01efba913f dbapi2 set_progress_handler should return integer (#8109)
dbapi2 set_progress_handler callback should return an int according to the
stdlib documentation: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.set_progress_handler

Fixes #8105
2022-06-20 13:42:58 +02:00
Shantanu
34579f1edf socket: add TCP_KEEPALIVE (#8100)
bpo-34932

Co-authored-by: hauntsaninja <>
2022-06-19 17:57:07 +01:00
Alex Waygood
411d85feeb socket.AddressFamily: Fix AF_LINK (#8103)
Slipped through the net in #8099
2022-06-19 09:10:33 +01:00
Shantanu
b7f8d847be socket: consistency between constants and enums (#8099)
This matches what happens at runtime, from Enum._convert_
Helps with #8098. Closes #5696.
2022-06-19 08:57:55 +01:00
John Villalovos
fc69e0053a imaplib: fix exception types (#8095)
Closes #8094
2022-06-17 23:45:10 -07:00
Alex Waygood
6b0c8df9ec Upgrade pyright, improve pyright config files (#8072) 2022-06-16 18:50:50 +01:00
Prometheus3375
91d6383d9d Change return type of XMLPullParser.read_events() (#8076) 2022-06-14 19:15:29 +01:00
Alex Waygood
01d5e28ff7 Fix miscellaneous invalid TypeVar usages (#8074) 2022-06-14 08:48:41 -07:00