Commit Graph

4803 Commits

Author SHA1 Message Date
Kevin Kirsche
2c7ac0990f Remove ssl.SSLContext.__init__ (#8640)
Fixes: #8632
2022-08-29 13:07:59 +01:00
Nikita Sobolev
6e985ef3de stdlib mapping classes: Use better names for various pos-only parameters (#8637) 2022-08-28 23:29:00 +01:00
Nikita Sobolev
6d5fd0e290 Allow passing tuples to ipaddress.ip_network (#8634) 2022-08-27 18:38:26 +01:00
Jason Heiss
d1d9b98aff imaplib.Time2Internaldate also takes datetimes and 9-element tuples (#8630)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-27 16:11:26 +01:00
MapleCCC
dece0b1fff assertRaises / assertRaisesRegex / assertWarns / assertWarnsRegex: msg argument is keyword-only (#8631) 2022-08-27 15:55:14 +01:00
GrozniyToaster
b6b8894964 Accept anything with __getitem__ in str.translate (#8629)
translate table protocol
2022-08-26 20:24:21 +03:00
Nikita Sobolev
0259068ad6 Remove duplicate definitions in sub-classes (#8594) 2022-08-26 17:10:55 +02:00
Shantanu
93ee41bcd9 typing: add _type_repr (#8624) 2022-08-26 12:15:11 +02:00
Arnav Singh
712b265a16 Fix os.{,p}{read,write}v to take Sequence of ReadableBuffer / WriteableBuffer (#8617)
Fixes #8615
Fixes #8616
2022-08-25 21:50:01 -07:00
junkmd
179228370a Add win32-specific constants to _ctypes (#8614) 2022-08-25 16:22:06 +01:00
Alex Waygood
0f1d1f16b4 isort: don't skip stdlib/venv (#8607) 2022-08-24 15:48:27 -07:00
Aron Bierbaum
ef6bacab92 Update ForwardRef._evaluate for Python 3.11 (#8600)
recursive_guard argument was added in https://github.com/python/cpython/pull/21553
2022-08-23 18:05:55 -07:00
Nikita Sobolev
fed419b8f1 Add CTYPES_MAX_ARGCOUNT to _ctypes (#8601) 2022-08-23 14:52:16 -07:00
junkmd
2066b9533c _ctypes: add stubs (#8582)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
2022-08-23 12:22:12 -07:00
Ganden Schaffner
9469c1c7ea Make AsyncExitStack.push_async_exit support __aexit__s returning Awaitable[None] (#8596)
Make push_async_exit support __aexit__'s returning Awaitable[None]
2022-08-23 14:28:37 +01:00
Akuli
5ea1b1e6de Add types to tkinter.colorchooser.askcolor (#8588) 2022-08-22 18:15:37 +02:00
Alex Waygood
976fdae300 xml stubs: Any -> Incomplete (#8576) 2022-08-22 16:42:37 +01:00
Kevin Kirsche
269c07589a Add more annotations to xml.dom.minidom and xml.sax.handler (#8590) 2022-08-22 16:20:34 +01:00
Alex Waygood
c2966bc5ed multiprocessing.reduction: Any -> Incomplete (#8585) 2022-08-21 17:43:55 -07:00
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