Commit Graph
100 Commits
Author SHA1 Message Date
Alex Waygood fd750bf065 asyncio.unix_events: Make AbstractChildWatcher abstract, add PidfdChildWatcher (#7412) 2022-03-01 16:23:46 +01:00
Alex Waygood 3bbc36c92d Add two missing ForwardRef attributes (#7402)
These look somewhat like implementation details, but no more so than any of the other dunder attributes that are already on the class.
2022-02-28 21:44:28 -08:00
Alex Waygood 1575c1b3b8 Add sys.__unraisablehook__ (#7403)
Docs [here](https://docs.python.org/3/library/sys.html#sys.__breakpointhook__). The similar functions `sys.__displayhook__` and `sys.__breakpointhook__` are already included in the stub.
2022-02-28 21:43:48 -08:00
Alex Waygood 4b7d2a76cb Add __all__ for pickle and turtle (#7401) 2022-02-28 14:50:29 -08:00
Alex Waygood 1ebedcc2b4 Mark fields as readonly in builtins.pyi and types.pyi (#7392)
Add FunctionType.__builtins__
2022-02-28 13:23:34 +01:00
Alex Waygood bf167d4df4 Add __all__ for asyncio.unix_events & asyncio.taskgroups, and simplify asyncio.__init__ (#7343) 2022-02-28 12:51:32 +01:00
Alex Waygood b8421eb5d4 Delete the contents of distutils.command.__init__ (#7370) 2022-02-27 16:43:11 -08:00
Alex Waygood a0b41959ec stdlib: fix many attributes which are read-only at runtime but read-write in the stub (#7395) 2022-02-27 16:23:09 -08:00
Alex Waygood 46da0b87ea Add collections.ChainMap.__bool__ (#7391) 2022-02-27 16:02:01 -08:00
Alex Waygood 95885c96ed Add subprocess.__all__ (#7390) 2022-02-27 16:01:51 -08:00
Alex Waygood 3000bb8d91 lib2to3: add Leaf.__unicode__ and Node.__unicode__ (#7394) 2022-02-27 14:49:28 -08:00
Alex Waygood 4f0d8c593e Delete EnumMeta.__setattr__ and EnumMeta.__delattr__ (#7388) 2022-02-26 17:55:53 -08:00
Alex Waygood 2d6ab4d3bf Fix several mypy errors when run on the 3.11 stdlib (#7389) 2022-02-26 17:49:36 -08:00
Alex Waygood 95df201a78 Add tokenize.__all__ (#7387) 2022-02-26 16:35:55 -08:00
Alex Waygood d2ddda00cf Fix various __all__-related typos and omissions (#7378) 2022-02-25 15:10:00 +02:00
Alex Waygood 6a743348ca Add __all__ for most modules beginning with 't' (#7373) 2022-02-23 18:25:28 -08:00
Alex Waygood 062fc75d73 Upgrade pytype to 22.2.23 (#7375)
Unblocks #7343
2022-02-23 17:39:27 -08:00
Alex Waygood 58e505eeb2 Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' (#7374) 2022-02-23 23:04:21 +01:00
Alex Waygood 05dee4dc0e Improve re.RegexFlag etc (#7369)
- Add `NO_FLAG`, new in 3.11
- Delete very old comment
- Several members in `RegexFlag` are aliases of other members; the stub should reflect that
2022-02-23 15:06:57 +01:00
Alex Waygood a3bb5af4a0 Add __all__ to most modules beginning with 'q', 'r' and 's' (#7364) 2022-02-22 16:51:54 -08:00
Alex Waygood 240628c4dd Add missing objects to plistlib, and improve __all__ in asyncio.tasks, http.server, & multiprocessing.__init__ (#7363) 2022-02-22 16:39:34 -08:00
Alex Waygood 070bbb4fb9 Add multiprocessing.reduction submodule (#7361) 2022-02-22 16:36:26 -08:00
Alex Waygood 1610949c66 Improve enum stubs (#7362)
- Improve TypeVar names
- `object` -> `Any` in `Enum.__new__` (there _are_ restrictions on the kinds of objects that can be passed in, they're just not expressable in the stubs.
- Delete pointless `Self | int` unions, since `Self` is a subtype of `int` for these methods.
2022-02-22 20:17:55 +01:00
Alex Waygood 22c3cc4d0b Add csv.__version__ (#7357) 2022-02-22 20:12:43 +02:00
Alex Waygood 6fc4c14181 Add missing objects in codecs, configparser, and multiprocessing.dummy (#7360) 2022-02-22 18:25:27 +01:00
Alex Waygood a37d5f4849 Add enum module features new in 3.11 (#7358) 2022-02-22 08:42:03 -08:00
Alex Waygood bdcaea4305 cgi: Add print_exception and print_arguments (#7359) 2022-02-22 08:38:02 -08:00
Alex Waygood 64af11c78f Correct several positional-only differences in third-party stubs (#7352) 2022-02-22 06:49:51 -08:00
Alex Waygood 69abe56e18 pyrightconfig.json: correct typo in comment (#7355)
Typeshed has no factions, only fractions :)
2022-02-22 06:44:16 -08:00
Alex Waygood d6ce3abd68 Add __all__ to most modules beginning with 'n', 'o' and 'p' (#7345) 2022-02-21 17:57:03 -08:00
Alex Waygood 3afc0b1ade Update inspect stubs for Python 3.11 (#7342) 2022-02-21 16:36:01 +01:00
Alex Waygood e2524b0e96 Add asyncio.base_futures.__all__ (#7279) 2022-02-20 17:59:14 -08:00
Alex Waygood 189e4ea396 Use flake8-pyi 22.2.0 (#7338) 2022-02-20 17:46:42 -08:00
Alex Waygood 072f1c246e Add Y034 to list of ignored error codes for typing.pyi (#7336)
Unblocks https://github.com/PyCQA/flake8-pyi/pull/186
2022-02-20 17:13:18 -08:00
Alex Waygood 953f815f6b Add EnumMeta.__prepare__ (#7243) 2022-02-20 15:57:21 -08:00
Alex Waygood 8130e40536 Add asyncio.streams.__all__ (#7275) 2022-02-20 15:44:32 -08:00
Alex Waygood 2fe519c3a7 Add __all__ for modules beginning with 'e', 'f' and 'g' (#7325) 2022-02-20 15:08:14 -08:00
Alex Waygood 3ead05f277 Add __all__ to modules beginning with 'j', 'k' and 'l' (#7328) 2022-02-20 15:06:54 -08:00
Alex Waygood 07de01f29e Add __all__ to modules beginning with 'm' (#7330) 2022-02-20 14:08:07 -08:00
Alex Waygood 3e579b8b29 Improve importlib.metadata (#7326) 2022-02-20 14:06:27 -08:00
Alex Waygood 8f2f857ffc Add __all__ for modules beginning with 'h' and 'i' (#7327) 2022-02-20 14:01:45 -08:00
Alex Waygood b74acc7546 Add all the email __all__s (#7304) 2022-02-19 17:53:29 -08:00
Alex Waygood e9db3bd50a Add __all__ for modules beginning with 'c' and 'd' (#7303) 2022-02-19 17:51:27 -08:00
Alex Waygood 49aa342c15 Add contextlib.__all__ (#7301) 2022-02-19 13:02:34 -08:00
Alex Waygood 6be5623cd6 Add contextvars.__all__ (#7302) 2022-02-19 13:01:21 -08:00
Alex Waygood 4343153c8c Add configparser.__all__ (#7300) 2022-02-19 12:28:28 -08:00
Alex Waygood 8955916099 Add concurrent.futures.__all__ (#7299) 2022-02-19 12:27:48 -08:00
Alex Waygood 2aa7d2dd7b Add compileall.__all__ (#7298)
All the alls of the alls
2022-02-19 12:27:07 -08:00
Alex Waygood 7ffeb66a13 Add colorsys.__all__ (#7297) 2022-02-19 12:26:45 -08:00
Alex Waygood cc1dd6d6ec Add collections.__all__ (#7296) 2022-02-19 12:26:23 -08:00
Alex Waygood f86c918829 Add codeop.__all__ (#7295) 2022-02-19 12:25:51 -08:00
Alex Waygood 199475ef8b Add codecs.__all__ (#7294) 2022-02-19 12:25:25 -08:00
Alex Waygood 6cd02c2aa8 Add code.__all__ (#7293) 2022-02-19 12:24:09 -08:00
Alex Waygood 18d254cb3b Add cgi.__all__ (#7292) 2022-02-19 12:23:48 -08:00
Alex Waygood cf87ecd92a Add cProfile.__all__ (#7291) 2022-02-19 12:23:21 -08:00
Alex Waygood 98f94c3ba1 Add bz2.__all__ (#7290) 2022-02-19 12:23:03 -08:00
Alex Waygood 5df6314d4f Add base64.__all__ (#7289) 2022-02-19 12:22:44 -08:00
Alex Waygood 3c5c890761 Add asyncio.selector_events.__all__ (#7288) 2022-02-19 12:22:08 -08:00
Alex Waygood f250c3f18d Add aifc.__all__ (#7287) 2022-02-19 12:21:49 -08:00
Alex Waygood 748e4d3a20 Add _weakrefset.__all__ (#7286) 2022-02-19 12:21:29 -08:00
Alex Waygood 5edf22189f Add _threading_local.__all__ (#7285) 2022-02-19 12:21:12 -08:00
Alex Waygood 3446a40fb5 Add asyncio.transports.__all__ (#7281) 2022-02-18 19:25:33 -08:00
Alex Waygood d9e7673273 Add asyncio.tasks.__all__ (#7280) 2022-02-18 19:15:09 -08:00
Alex Waygood 309b6f2b52 Add `asyncio.windows_utils.__all__ (#7278) 2022-02-18 19:06:01 -08:00
Alex Waygood e3e3db6fe5 Add asyncio.threads.__all__ (#7277) 2022-02-18 18:45:58 -08:00
Alex Waygood a9f80c64b9 Add asyncio.subprocess.__all__ (#7276) 2022-02-18 18:45:52 -08:00
Alex Waygood 1f2c21d9e9 Add asyncio.staggered.__all__ (#7274) 2022-02-18 18:37:18 -08:00
Alex Waygood 6672e57e75 Add asyncio.runners.__all__ (#7273)
Nice and simple, this one.
2022-02-18 18:37:09 -08:00
Alex Waygood d690238d8b Add asyncio.queues.__all__ (#7272) 2022-02-18 18:30:20 -08:00
Alex Waygood 8d63713200 Add asyncio.protocols.__all__ (#7271) 2022-02-18 18:30:06 -08:00
Alex Waygood 7dbd29174c Add asyncio.proactor_events.__all__ (#7270) 2022-02-18 18:26:31 -08:00
Alex Waygood 29ac4cccc5 Add asyncio.locks.__all__ (#7269) 2022-02-18 18:26:25 -08:00
Alex Waygood 5729a239ae Add asyncio.futures.__all__ (#7268) 2022-02-18 18:16:09 -08:00
Alex Waygood b228c8d29e Add asyncio.events.__all__ (#7266) 2022-02-18 17:50:28 -08:00
Alex Waygood 8fd630051d Add asyncio.exceptions.__all__ (#7267) 2022-02-18 17:45:21 -08:00
Alex Waygood 9fb9a197b5 Add asyncio.base_events.__all__ (#7264) 2022-02-18 17:36:41 -08:00
Alex Waygood ee4ee8bb0f Add asyncio.coroutines.__all__ (#7265) 2022-02-18 17:36:29 -08:00
Alex Waygood ad6982e4b8 Add argparse.__all__ (#7263) 2022-02-18 17:35:27 -08:00
Alex Waygood 1f6c691322 Add missing dunder overrides in array, tracemalloc and unittest.mock (#7248) 2022-02-17 13:22:33 +01:00
Alex Waygood 1091521f60 stdlib: Add several missing __(deep)copy__ methods (#7242) 2022-02-16 18:57:41 -08:00
Alex Waygood d869f2e5a3 Improve ipaddress dunders (#7244) 2022-02-16 18:55:39 -08:00
Alex Waygood 5a8b9dafb3 Fix various py310 stubtest errors (#7239) 2022-02-16 11:47:49 -08:00
Alex Waygood fef3a71459 poplib.POP3_SSL.stls unconditionally raises an exception (#7191)
Source code here: https://github.com/python/cpython/blob/0ae40191793da1877a12d512f0116d99301b2c51/Lib/poplib.py#L460

We have to keep the method in the stub, as it's overriding a method in the superclass that doesn't unconditionally raise.
2022-02-16 07:02:00 -08:00
Alex Waygood a599af5c74 Make pydoc.Doc an abstract class (#7200) 2022-02-16 07:01:48 -08:00
Alex Waygood 28a760cd2c Improve pyclbr.pyi (#7229) 2022-02-16 07:01:27 -08:00
Alex Waygood fbc279e3f5 stdlib: Add many missing dunder overrides (#7231) 2022-02-16 06:25:47 -08:00
Alex Waygood 1341a34525 Remove unused allowlist entries in babel and requests (#7233) 2022-02-15 16:26:13 -08:00
Alex Waygood 3567aaa93f Fix positional-only differences in sqlite3 (#7222) 2022-02-15 13:01:26 -08:00
Alex Waygood 5e8a2a9364 Fix various pos-only stubtest complaints previously allowlisted (#7228) 2022-02-15 17:51:34 +01:00
Alex Waygood 1317fa7af9 Fix positional-only differences in threading.local (#7227)
Last one of these, I think.
2022-02-15 07:16:20 -08:00
Alex Waygood 4ab5033e5b Make mailbox.MailDir abstract (#7201) 2022-02-15 06:47:17 -08:00
Alex Waygood 96b06adf2c Add missing descriptor methods in dataclasses and functools (#7203) 2022-02-15 06:45:49 -08:00
Alex Waygood e976ee1988 Improve traceback.FrameSummary (#7210) 2022-02-15 06:43:11 -08:00
Alex Waygood 5e7909d9b3 Fix positional-only differences in types (#7220) 2022-02-15 06:27:09 -08:00
Alex Waygood 7595e2e79b Fix positional-only differences in xml (#7225) 2022-02-15 06:22:31 -08:00
Alex Waygood 24cfd431a8 Fix positional-only differences in ctypes (#7223) 2022-02-15 06:22:14 -08:00
Alex Waygood 2f0fac0cd9 Fix positional-only differences in _tkinter (#7224) 2022-02-15 06:21:50 -08:00
Alex Waygood f4967618dd Fix positional-only differences in many stdlib modules (#7226) 2022-02-15 15:14:06 +01:00
Alex Waygood 32e9a0fbc1 Fix positional-only differences in sys (#7221) 2022-02-15 15:12:58 +01:00
Alex Waygood 690975b55d types: Add several missing __(qual)name__ attributes (#7216) 2022-02-15 08:07:39 +01:00