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
Alex Waygood
a67c316d08
Add a few missing dunders in builtins ( #7214 )
2022-02-14 15:07:38 -08:00
Alex Waygood
2878050ffc
Add @final to several stdlib classes that cannot be subclassed at runtime ( #7213 )
2022-02-14 14:46:30 -08:00
Alex Waygood
a8141e14ae
Add itertools.repeat.__length_hint__ method ( #7212 )
2022-02-14 14:13:13 -08:00
Alex Waygood and Jelle Zijlstra
11efe034bb
collections: Add missing reflected BinOp methods (#7207 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-02-14 13:03:40 -08:00
Alex Waygood
5972da2e2d
Add EnumMeta.__bool__ ( #7206 )
...
Most Python objects evaluate as falsey if they have length 0, but an enum class is truthy even if it has length 0.
Source code: https://github.com/python/cpython/blob/841c77d802e9ee8845fa3152700474021efe03fd/Lib/enum.py#L353
2022-02-14 13:03:17 -08:00
Alex Waygood
dea12b2c47
Add missing __isabstractmethods__ attributes in abc and `functools1 ( #7205 )
2022-02-14 11:20:07 -08:00
Alex Waygood
66a229b709
stdlib: Add several missing comparison methods ( #7202 )
2022-02-14 11:09:52 -08:00
Alex Waygood
f3ad0179f8
Fix return types in codecs ( #7199 )
2022-02-14 14:03:58 +01:00
Alex Waygood
7682ae957a
cmd.Cmd.default returns None, not bool (#7193 )
2022-02-14 09:24:29 +01:00
Alex Waygood
b0f2bd68b0
Improve tempfile.SpooledTemporaryFile ( #7196 )
2022-02-13 17:41:54 -08:00
Alex Waygood
65002d2e69
threading: Semaphore.__exit__ & _RLock.__exit__ always return None (#7195 )
...
`_RLock.__exit__`: https://github.com/python/cpython/blob/1d6ce67c29aa2166ef326952cb605b908fb4f987/Lib/threading.py#L199
`Semaphore.__exit__`: https://github.com/python/cpython/blob/1d6ce67c29aa2166ef326952cb605b908fb4f987/Lib/threading.py#L487
2022-02-13 17:41:17 -08:00
Alex Waygood
cabfaabd76
optparse.HelpFormatter: format_heading and format_usage are abstract methods (#7194 )
...
The [docstrings state](https://github.com/python/cpython/blob/0ae40191793da1877a12d512f0116d99301b2c51/Lib/optparse.py#L255-L259 ) "Subclasses must implement", and the [docs for optparse](https://docs.python.org/3/library/optparse.html ) explicitly state that `TitledHelpFormatter` and `IndentedHelpFormatter` are provided as "concrete implementations" of `optparse.HelpFormatter`.
2022-02-13 17:41:00 -08:00
Alex Waygood
68e2a74a79
pathlib.Path.__exit__ always returns None (#7192 )
...
Source code here: https://github.com/python/cpython/blob/0ae40191793da1877a12d512f0116d99301b2c51/Lib/pathlib.py#L893
It has always returned `None`, by the looks of things.
2022-02-13 17:14:13 -08:00
Alex Waygood
0109a371d6
Improve webbrowser stubs ( #7190 )
...
- `BaseBrowser.open` is an abstract method that should be overridden in all subclasses.
- `UnixBrowser.open` only accepts 0, 1 or 2 for the `new` parameter.
2022-02-13 17:10:43 -08:00
Alex Waygood
7f472e94e5
Improve collections.UserString ( #7189 )
2022-02-13 17:09:06 -08:00
Alex Waygood
63489c305d
asyncio: make AbstractServer abstract and remove unnecessary metaclass=ABCMeta (#7185 )
2022-02-13 23:34:19 +02:00
Alex Waygood
03dbe2206c
Improve pathlib stubs ( #7181 )
2022-02-12 18:42:04 -08:00
Alex Waygood
da7604a968
Add stubs for pyflakes ( #7175 )
2022-02-11 12:21:28 +01:00
Alex Waygood
4b75ecbbe2
Use Self in Python 2's array.__imul__ ( #7167 )
2022-02-08 10:54:16 -08:00
Alex Waygood
5f830d023f
Backport more Self-related changes to Python 2 ( #7166 )
2022-02-08 09:52:43 -08:00
Alex Waygood
398a5807a1
Return Self from MutableSequence.__iadd__ ( #7162 )
2022-02-08 06:15:37 -08:00
Alex Waygood
b1b3471c76
Improve in-place BinOp methods for sets ( #7161 )
2022-02-08 14:57:50 +01:00
Alex Waygood
494481a0ae
Improve a bunch of __(deep)copy__ methods ( #7148 )
2022-02-06 15:40:44 -08:00
Alex Waygood
a62fd92fb0
Improve some in-place BinOp methods ( #7149 )
2022-02-06 15:36:57 -08:00
Alex Waygood
348c38a0dd
Improve __all__ definitions for threading and _dummy_threading modules ( #7135 )
2022-02-05 08:07:02 -08:00
Alex Waygood
287c8c3d79
Add __all__ to copyreg stubs ( #7137 )
2022-02-05 07:28:15 -08:00
Alex Waygood
004f12a1eb
Add __all__ to _osx_support ( #7136 )
2022-02-05 07:27:01 -08:00
Alex Waygood
1371a1e1fe
unittest deprecations have been deferred until 3.12 ( #7131 )
...
See https://github.com/python/cpython/pull/30935
2022-02-04 15:52:30 -08:00
Alex Waygood
51cdd2c6be
Backport many Self-related changes to the Python-2 stdlib ( #7128 )
2022-02-04 10:10:05 -08:00
Alex Waygood
26e8959279
Use _typeshed.Self in docutils.VersionInfo and os.sched_param ( #7117 )
2022-02-02 23:30:39 +01:00
Alex Waygood
15d76b072a
Improve classmethods in paramiko stubs ( #7113 )
2022-02-02 22:15:26 +01:00
Alex Waygood
b4e97a1909
Improve __enter__ & constructor methods ( #7114 )
2022-02-02 22:14:59 +01:00
Alex Waygood
7ccbbdb30a
stdlib: Improve many __iter__ and constructor methods ( #7112 )
2022-02-02 19:14:57 +01:00
Alex Waygood and pre-commit-ci[bot]
27c7aece10
Update asyncio.trsock to reflect methods removed in 3.11 ( #7110 )
...
* Update `asyncio.trsock` to reflect methods removed in 3.11
These were all removed in https://bugs.python.org/issue43232
* [pre-commit.ci] auto fixes from pre-commit.com hooks
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-02 09:44:26 -08:00
Alex Waygood and Sebastian Rittau
806c26045e
Improve itertools stubs ( #7109 )
...
There are quite a few `__iter__` methods in `itertools` that return `self` at runtime. They should do so in the stubs as well.
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-02-02 08:37:41 -08:00
Alex Waygood
f50255025a
calendar.different_locale.__enter__ returns None, not _LocaleType (#7108 )
2022-02-02 16:28:18 +01:00
Alex Waygood
584336a41e
Fix several methods that should be async def, but aren't ( #7107 )
2022-02-02 15:18:14 +01:00
Alex Waygood
3e6375e606
Delete commented-out pydoc.Scanner class ( #7100 )
2022-02-01 19:46:51 +02:00
Alex Waygood
023e21dedf
Delete SupportsAnyComparison type in _typeshed ( #7098 )
2022-02-01 14:32:20 +01:00
Alex Waygood
f86f096e1c
Use literal types in lzma ( #7095 )
2022-01-31 10:46:26 -08:00