Commit Graph

4564 Commits

Author SHA1 Message Date
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
Kevin Kirsche
dd24bba3dd Add multiprocessing.resource_sharer submodule (#8413)
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:09:18 +01:00
Kevin Kirsche
177bbf7864 Add curses.has_key submodule (#8421) 2022-07-28 14:39:44 +01:00
Shantanu
804628dc7d Remove unused protocol (#8418) 2022-07-27 20:35:47 -07:00
Kevin Kirsche
b7b98a6c9f curses: add Concatenate (#8414)
Update the `wrapper` `__func` parameter to use ParamSpec and Concatenate to address a todo.
2022-07-27 20:02:25 -07:00
Kevin Kirsche
48e502c431 fix: Add missing multiprocessing.util types (#8404)
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-27 20:22:54 +01:00
Kevin Kirsche
5397d430ea Add multiprocessing.resource_tracker submodule (#8405) 2022-07-27 17:31:31 +01:00
Kevin Kirsche
a0c1a2f566 Add multiprocessing.forkserver submodule (#8406)
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-27 17:08:12 +01:00
Kevin Kirsche
41435ef25a Allow handling None return values of RawConfigParser.get (#8380)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-07-27 01:23:58 +03:00
Kevin Kirsche
5732b8f34e email.Message.walk yields self (#8398)
This updates the generator used by `Message` to return `Self` so that it correctly changes when a `MIMEPart` or `EmailMessage`.

Fixes #8290
2022-07-26 11:17:45 +02:00
Nikita Sobolev
abd893abae Type http.client.HTTPConnection.sock (#8386) 2022-07-26 11:07:54 +02:00
Sam Bull
be0d159df3 asyncio.AbstractEventLoop: Allow Path for create_unix_server() (#8376) 2022-07-24 15:43:52 +01:00
Shane Harvey
7a73660f3f Fix hints for TestCase.assertRaises (#8373) 2022-07-23 10:43:38 +01:00
Nikita Sobolev
32bac7280e Remove python3.6 stubs from pyclbr (#8364) 2022-07-22 11:36:04 +02:00
Nikita Sobolev
fab1b59715 Always return Iterator, not Iterable for __iter__ (#8361) 2022-07-22 08:10:58 +01:00
Shantanu
1a8a49e671 wsgiref.types: use Iterator, not Iterable (#8358)
https://github.com/python/typeshed/issues/8356
2022-07-21 13:26:44 -07:00
Tetsuo Kiso
9fe771f31d xml.dom.minidom: add more missing type annotations to methods on Element (#8355) 2022-07-21 17:45:52 +02:00
Tetsuo Kiso
10bc4b0584 xml.dom.minidom: add missing type annotation of Element.getAttribute (#8350) 2022-07-21 08:18:58 +02:00
Alex Waygood
5bc9554573 stdlib/VERSIONS: fix crusty comment (#8347)
Resolves #8310
2022-07-20 18:59:01 +02:00
Alex Waygood
d1e80a724a Add some missing Windows constants (#8346) 2022-07-20 17:45:36 +01:00
Alex Waygood
a57e182608 enum: Correct IntFlag mro on 3.11+ (#8334) 2022-07-19 21:47:37 +02:00