David Robertson
836d680f16
cgi.FieldStorage: headers can be email.message.Message (#8584 )
2022-08-21 17:04:54 +01:00
Alex Waygood
9f05e9ff58
Improve classes returned from OrderedDict.{keys(), items(), values()} ( #8552 )
2022-08-20 22:21:39 +01:00
Kevin Kirsche
fb62ccabf5
Add missing annotations for xml.dom.minidom.DOMImplementation ( #8556 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-20 20:33:40 +01:00
Kevin Kirsche
b26c31a23c
Update sys.exit and SystemExit.code to have the same types ( #8554 )
2022-08-20 10:59:38 +01:00
Ethan Smith
5435ed76ef
sysconfig.get_config_var should return Any ( #8572 )
...
This can return str, int, None... and maybe more. In the interest of being defensive, have it return Any.
2022-08-19 21:29:47 -07:00
Alex Waygood
8a326dc9ec
Remove NoReturn overloads from pow() ( #8568 )
2022-08-19 11:15:07 -07:00
David Robertson
0428069fab
argparse: type subparser helper's add_parser ( #8558 )
2022-08-19 19:51:19 +03:00
Kevin Kirsche
308291033f
xml: add missing xml.dom.minidom.*.nodeType type ( #8557 )
2022-08-18 19:56:55 -07:00
Kevin Kirsche
a8c8178127
Add missing NETLINK re-exports of linux socket constants ( #8555 )
2022-08-18 20:24:58 +01:00
Alex Waygood
2c052651e9
Normalise use of Never vs NoReturn ( #8549 )
2022-08-17 21:53:40 +01:00
Alex Waygood
5b47f13a99
Add _threading_local.local.__delattr__ back to the stub ( #8526 )
2022-08-15 11:56:31 +02:00
Peter Law
3623f923a6
Fix UDPServer to correctly inherit from TCPServer ( #8542 )
2022-08-13 19:03:59 +02:00
Alex Waygood
cf0b3a2596
Improve .keys(), .values(), .items() methods for TypedDicts ( #8532 )
2022-08-12 20:02:43 -07:00
Alex Waygood
1ec57121e3
Unpin stubtest from 3.10.5 ( #8523 )
2022-08-12 10:01:26 +02:00
Alex Waygood
a92da58328
Add @type_check_only to two fictional classes in builtins.pyi ( #8531 )
2022-08-11 11:55:07 +01:00
Alex Waygood
556f6a10f6
Enable flake8-pyi's Y034 check in stdlib/typing.pyi ( #8530 )
2022-08-11 10:57:31 +02:00
Alex Waygood
a0d1f466fb
decimal.Context: Improve comments (#8525 )
2022-08-10 19:53:47 +01:00
Nikita Sobolev
510feeb3fc
Improve constructor for builtins.dict ( #8517 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-10 19:04:07 +01:00
Nikita Sobolev
5cc966cc57
Improve email.headerregistry.HeaderRegistry stub ( #8516 )
2022-08-10 19:00:11 +01:00
Alex Waygood
7eaedd44dd
Add missing TypedDict methods and ClassVars ( #8512 )
2022-08-10 10:29:40 +01:00
Nikita Sobolev
4e3e9ba2c6
Remove outdated TODO comment ( #8508 )
2022-08-09 09:55:45 +02:00
Nikita Sobolev
4e5d9d1cca
Add missing metaclasses in ast and contextlib ( #8497 )
2022-08-08 16:08:07 +01:00
Nikita Sobolev
64bc0590a6
Remove un-needed __hash__ methods from stdlib ( #8465 )
2022-08-06 14:55:27 +01:00
Nikita Sobolev
ac86defef7
Simplify multiprocessing.context.{SpawnProcess,SpawnContext} ( #8499 )
2022-08-06 12:03:43 +01:00
Alex Waygood
892796a794
Remove, move or # noqa more TypeAlias declarations ( #8450 )
2022-08-05 13:03:19 +01:00
Nikita Sobolev
2f15b0d4db
_sendfile_compatible is a class variable (#8496 )
2022-08-05 10:52:08 +02:00
Nikita Sobolev
a03e8b4949
Revert __eq__ removal ( #8487 )
...
Refs #8483
2022-08-04 23:51:42 +02:00
Nikita Sobolev
a376da87bd
Remove duplicate definitions ( #8483 )
2022-08-04 18:55:18 +02:00
Nikita Sobolev
799fd2c8d8
Improve multiprocessing.context module ( #8466 )
...
* Use `ClassVar` where applicable
* Fix `_Popen()` return types
* Remove non-existing field `BaseContext.Process`
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-04 12:30:23 +02:00
Nikita Sobolev
bcd770bad3
Always return True from xml.dom.minidom.Node.__bool__ ( #8480 )
2022-08-04 12:23:34 +02:00
Nikita Sobolev
0480550fc3
Adds missing __dir__ definitions ( #8479 )
2022-08-04 12:21:43 +02:00
Nikita Sobolev
b19d447721
Remove Enum.__hash__, improve Enum.__reduce_ex__ ( #8477 )
2022-08-03 18:19:49 +01:00
Akuli
57179d4080
tkinter: get rid of unnecessary Incomplete ( #8471 )
2022-08-02 15:03:24 -07:00
Scott Lerman
93ebd58055
Fix complex constructor ( #8473 )
2022-08-03 00:41:18 +03:00
Akuli
5e5f3b4ecc
Use typeshed.Incomplete and object instead of Any in tkinter stubs ( #8458 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-02 22:10:25 +03:00
Alex Waygood
1dc1c91429
io.IOBase: correct metaclass (#8468 )
...
`io.IOBase` has `ABCMeta` as the metaclass at runtime: 75a6441718/Lib/io.py (L71)
But not currently in the stub. This is causing an unexpected stubtest failure for a `urllib3` PR here: https://github.com/python/typeshed/runs/7633083101?check_suite_focus=true
2022-08-02 09:20:07 -07:00
Nikita Sobolev
1bd1625c36
importlib: SimplePath: __div__ -> __truediv__ on 3.10 ( #8451 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-02 07:15:46 +01:00
Alex Waygood
4414246a15
Clean up a few Python 2 remnants ( #8452 )
2022-07-31 19:19:18 +01:00
Alex Waygood
87fc724cef
ctypes: pointer is a function, not a class (#8446 )
2022-07-31 15:29:13 +02:00
Alex Waygood
ea7bbbdad7
Move Match and Pattern to re.pyi; move ContextManager protocols to contextlib.pyi ( #8447 )
2022-07-31 15:27:47 +02:00
Alex Waygood
fdeb216547
Remove or move several TypeAlias declarations ( #8444 )
2022-07-30 15:28:52 +01:00
Alan Isaac
a13e2339c4
traceback: Use _typeshed.SupportsWrite instead of typing.IO (#8442 )
2022-07-30 12:24:57 +01:00
Kevin Kirsche
f550c24886
Add multiprocessing.popen_spawn_win32 submodule ( #8428 )
2022-07-29 16:02:15 +01:00
Kevin Kirsche
17e3cf99a4
Add multiprocessing.popen_spawn_posix submodule ( #8427 )
2022-07-29 15:52:49 +01:00
Alex Waygood
553700e355
Move some protocol definitions closer to their usage sites ( #8436 )
2022-07-29 06:26:27 -07:00
Kevin Kirsche
1f0e641521
Add multiprocessing.popen_forkserver submodule ( #8425 )
...
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-28 17:26:06 +01:00
Alex Waygood
a9f6632d1b
multiprocessing.reduction: improve recvfds and recv_handle (#8422 )
2022-07-28 17:05:08 +01:00
Alex Waygood
26d09359cf
multiprocessing.resource_sharer: remove unused TypeAlias (#8424 )
2022-07-28 17:43:36 +02:00
Kevin Kirsche
fe1e3ef91b
Add multiprocessing.heap submodule ( #8412 )
...
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-28 16:27:25 +01:00
Kevin Kirsche
087fb6b96d
Add multiprocessing.popen_fork submodule ( #8420 )
...
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-28 16:19:43 +01:00