Commit Graph

4553 Commits

Author SHA1 Message Date
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
Sebastian Rittau
5534007189 Fix return type of email.header.decode_header() (#8337) 2022-07-19 20:43:48 +01:00
Alex Waygood
6903041744 Use CamelCase for type aliases in xml.etree.ElementPath.pyi (#8335) 2022-07-19 12:04:43 -07:00
q0w
6d0e01e62b socketserver: Set StreamRequestHandler.connection to SSLSocket (#8274) 2022-07-19 09:13:43 -07:00
Shantanu
f76c6ed55a multiprocessing: make some overloads more precise (#8330)
See discussion here: https://github.com/python/typeshed/issues/4266#issuecomment-1187867029

Co-authored-by: hauntsaninja <>
2022-07-19 16:55:23 +01:00
Alex Waygood
e2ce7c6344 stdlib: audit more callback annotations (#8209) 2022-07-19 07:07:25 -07:00
Alex Waygood
540a6b25bf Improve urllib.parse.urldefrag (#8204)
Fixes #2477
2022-07-19 07:05:09 -07:00
Shantanu
46937df750 wave: allow passing anonymous tuple (#8328)
Fixes #8322
2022-07-18 19:53:50 -07:00
Shantanu
4b184356f1 string: remove stray comment (#8329) 2022-07-18 19:53:15 -07:00
Alex Waygood
e156c63bdb inspect, asyncio: Use more TypeGuards (#8057) 2022-07-18 19:49:12 -07:00
Alex Waygood
4b504c78e0 Improve asyncio callbacks (#8192) 2022-07-18 19:46:38 -07:00
Graham Bleaney
9519e3652b Add LiteralString support to string module (#8268)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-18 19:34:27 -07:00