Stephen Morton
76537eb81b
BZ2Compressor and BZ2Decompressor live in the _bz2 module ( #12976 )
2024-11-08 17:47:00 +01:00
Stephen Morton
65af6e48b5
LZMADecompressor, LZMACompressor, and LZMAError live in _lzma ( #12977 )
2024-11-08 17:46:29 +01:00
Stephen Morton
460c09d122
add _contextvars for proper naming ( #12981 )
...
On 3.9 and lower, the contextvars types call themselves builtins.*
which we can't and won't match. This improves naming fidelity for
3.10 and newer.
2024-11-08 17:45:59 +01:00
Blaze
30c9af5aaa
Add listener attribute to QueueHandler ( #12986 )
2024-11-08 05:55:03 -08:00
Stephen Morton
27286c6821
Struct class lives in _struct ( #12980 )
...
This one is an improvement on 3.9+. On 3.8, the Struct class
calls itself `builtins.Struct` instead, which we can't and won't
match. `struct.error` is defined in `_struct.c`, but always called
itself `struct.error`.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-11-07 20:10:50 -08:00
Stephen Morton
a0165ae31a
add _dbm and _gdbm to align naming of error types with runtime ( #12978 )
2024-11-07 17:21:46 -08:00
Stephen Morton
1c78402e8a
SimpleQueue and Empty live in _queue ( #12979 )
2024-11-07 16:45:54 -08:00
Brian Schubert
951c0b82e8
Update logging.config.fileConfig to accept any Mapping for defaults ( #12973 )
2024-11-07 13:12:24 -08:00
Brian Schubert
dafd67c2cc
Mark OSError.strerror as sometimes None ( #12974 )
2024-11-07 08:08:28 -08:00
Agriya Khetarpal
3d853d5fa8
Improve path-related type hints for setuptools.Extension() and distutils.CCompiler() ( #12958 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-11-06 17:51:48 -05:00
Colin Watson
1ae7e615c0
Loosen type of fileobj argument to TarFile.addfile ( #12961 )
...
It only seems to need something it can read bytes from, rather than a
full-fledged `IO[bytes]`.
2024-11-06 06:10:25 -08:00
Stephen Morton
7b68c81f50
move various cases of 'stub does not have *args argument' to "don't fix" ( #12956 )
2024-11-05 07:57:45 +01:00
Brian Schubert
1a1970d950
Update getopt to accept any iterable for longopts ( #12950 )
2024-11-04 22:38:17 +01:00
Stephen Morton
84dfa4a8fc
Fix FileLoader.get_resource_reader signature ( #12946 )
...
Move stubtest allowlist entries to "can't be fixed" section
2024-11-04 16:16:14 +01:00
Stephen Morton
1a4631f0d2
Remove fake base class ipaddress._BaseInterface ( #12949 )
...
Also make hostmask a property to improve stubtest
2024-11-04 15:59:21 +01:00
Stephen Morton
9c8bc640a3
a couple stubtest fixes in multiprocessing ( #12948 )
2024-11-04 06:42:11 -08:00
Stephen Morton
e37ac25928
clean up io methods ( #12947 )
...
fixes for stubtest and default values
2024-11-04 06:39:25 -08:00
Brian Schubert
d262beb075
Fix callback parameter type in ssl.SSLContext.set_psk_server_callback ( #12932 )
2024-10-31 08:04:55 -07:00
Stephen Morton
6029bf1819
inheritance for zipimporter ( #12920 )
2024-10-29 19:47:56 +01:00
Alex Waygood
01e7e80bc7
Add types.ModuleType.__doc__ ( #12918 )
2024-10-29 07:09:47 -07:00
Stephen Morton
0301510114
Naming and inheritance for importlib ( #12775 )
...
This MR breaks out _frozen_importlib_external (which is the same
thing as importlib._bootstrap_external) and _frozen_importlib
(which is the same thing as importlib._bootstrap).
2024-10-29 11:09:00 +01:00
Sam Bull
601ce5a4b0
OSError.errno can be None ( #12910 )
2024-10-27 20:51:23 +00:00
Ekin Dursun
61ba4de28f
Change return type of as_completed in Python 3.13 ( #12912 )
2024-10-27 16:33:35 +00:00
Brian Schubert
efccd7455a
hashlib: fix sha3 and shake hash constructors, remove hash object __init__s ( #12906 )
2024-10-25 07:14:40 -07:00
Tamir Duberstein
fc8bff1b26
Add os.process_cpu_count() for 3.13 ( #12905 )
2024-10-25 06:51:38 -07:00
Sebastian Rittau
701cd065b8
[CI] Switch to macos-latest ( #12897 )
...
macos-12 is deprecated and will be removed:
https://github.com/actions/runner-images/issues/10721
2024-10-24 11:00:11 -07:00
Randolf Scholz
10183237c7
Make all params positional-only in slice.__new__ ( #12900 )
...
positional only __new__
2024-10-24 18:02:33 +01:00
Thanos
65405e9ef2
Make slice generic ( #11637 )
2024-10-24 17:40:29 +02:00
Alex Waygood
9ed47fa8ec
Fix linting issues ( #12898 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-24 14:26:37 +01:00
AlbertXingZhang
783171b9f7
correct memoryview __setitem__ method signature ( #12876 )
2024-10-24 12:09:38 +02:00
Avasam
df499768cb
setuptools & distutils: Add more recent MSVCCompiler from _msvccompiler ( #12887 )
2024-10-24 11:44:55 +02:00
Brian Schubert
27a8967896
Add missing parameter to email.policy.EmailPolicy.__init__ ( #12890 )
2024-10-24 11:35:26 +02:00
Brian Schubert
27325a255e
Add email.policy.EmailPolicy.clone ( #12879 )
2024-10-23 07:17:13 -07:00
Stephen Morton
494e832a74
fix up blake2b/blake2s classes ( #12878 )
2024-10-23 07:14:37 -07:00
Stephen Morton
c64f9d065b
unnecessary inheritance from ad-hoc protocol ( #12882 )
2024-10-23 07:11:51 -07:00
Stephen Morton
d5fff13c9b
add contextlib._GeneratorContextManagerBase ( #12885 )
...
Actually putting methods on it may be currently infeasible, but
I don't see why it shouldn't exist at all.
2024-10-23 07:11:06 -07:00
Stephen Morton
4c38695dfd
fix inheritance for _interpreters.NotShareableError ( #12880 )
...
related to https://github.com/python/typeshed/issues/3968
2024-10-23 06:58:46 -07:00
Stephen Morton
d7aa851552
correct inheritance of io.BufferedRandom ( #12883 )
2024-10-23 06:52:22 -07:00
Stephen Morton
0d95bad46a
correct inheritance for io.StringIO ( #12884 )
2024-10-23 06:48:30 -07:00
Stephen Morton
7417c373ab
Remove false inheritance from io.IncrementalNewlineDecoder ( #12871 )
2024-10-22 11:07:44 +02:00
Stephen Morton
e74d9cf9c7
remove unneeded use of AbstractContextManager from multiprocessing.synchronize ( #12872 )
2024-10-22 10:20:15 +02:00
Stephen Morton
e8c2e5bb20
remove redundant inheritance from Iterator for typing.IO ( #12870 )
2024-10-22 01:29:03 +01:00
Stephen Morton
b62579b0d2
swap inheritance order for typing.Sequence ( #12869 )
...
This matches the order at runtime.
2024-10-21 22:37:02 +01:00
Stephen Morton
925b3a3713
Remove redundant inheritances from Iterator in builtins ( #12851 )
2024-10-21 14:40:07 +02:00
Aaron Z.
3a48a1298f
Fix warnings.filters type ( #12866 )
...
Fixes #12828
2024-10-21 05:11:22 -07:00
Christoph Tyralla
8d02c2a6df
Use @deprecated for those visit methods of class NodeVisitor that deal with classes that have already been marked with @deprecated and add type: ignore[deprecated] comments. ( #12864 )
2024-10-21 13:44:57 +02:00
Peter Bierma
b208235219
Add deprecation annotation for zipimport.zipimporter.load_module ( #12862 )
2024-10-20 18:59:00 -07:00
Sebastian Rittau
ebdd2c528d
Update mypy to 1.12.0 ( #12859 )
2024-10-19 16:45:38 +01:00
Oleh Prypin
b2f68ec2fe
Use MaybeNone (alias to Any) when applicable ( #12855 )
2024-10-18 14:07:52 -07:00
Avasam
de4842db26
Replace Any with Incomplete in distutils ( #12842 )
2024-10-18 17:26:08 +02:00