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
Stephen Morton
281dd351a2
Remove redundant inheritances from Iterator in itertools ( #12816 )
2024-10-18 12:24:01 +02:00
Avasam
81138321d9
distutils: Add some return types for setuptools to pass ANN201 ( #12841 )
2024-10-18 12:09:34 +02:00
Avasam
559ae9730b
Restore os.path methods overload workaround ( #12837 )
...
Revert "Remove obsolete mypy bug workaround in `abspath()` (#12208 )"
This reverts commit 271df8ef04 .
2024-10-17 13:51:50 -07:00
Jelle Zijlstra
a2ee32ba5d
unittest: make protocol parameter positional-only ( #12834 )
2024-10-17 16:55:50 +02:00
bersbersbers
b78b3f10ba
slice is hashable starting with Python 3.12 (#12832 )
2024-10-17 09:17:38 +02:00
Stephen Morton
56078f574f
csv.Dialect doesn't actually subclass _csv.Dialect ( #12808 )
...
It does a weird wrapping thing instead:
2a5cdb2516/Lib/csv.py (L114)
2024-10-16 22:12:47 -07:00
Stephen Morton
2412c7cea6
Remove unneeded Iterable base class from asyncio.Future ( #12827 )
2024-10-16 22:11:05 -07:00
Jelle Zijlstra
2370b8b9d1
memoryview: re-add inheritance from Sequence, set index and count to None (#12800 )
...
This reverts commit f625e92ae5 .
2024-10-16 07:27:56 -07:00
Brian Schubert
ab8e0e1ca1
Fix return type of logging.config.BaseConfigurator.as_tuple ( #12817 )
2024-10-15 19:54:48 +01:00
Stephen Morton
aedf65abe9
remove unneeded AsyncIterator base class from asyncio.StreamReader ( #12815 )
2024-10-15 11:25:40 -07:00
Stephen Morton
816b47c231
remove unneeded Interator base class from sqlite3.Cursor ( #12813 )
2024-10-15 11:25:21 -07:00
Stephen Morton
1fb6ebf62b
Remove redundant inheritances from Iterator ( #12814 )
2024-10-15 19:17:34 +01:00
Stephen Morton
f08d769f7c
remove unneeded Iterable base class from CookieJar ( #12812 )
2024-10-15 19:47:56 +02:00
Stephen Morton
a871efd90c
remove unecessary Iterable base classes ( #12810 )
2024-10-15 00:53:35 +01:00
Stephen Morton
e7e9c13c1c
clean inheritance for OrderedDict related classes ( #12809 )
...
Reversible is protocol-like, plus it subclasses dict which is itself
Reversible on all supported python versions now.
2024-10-14 16:05:04 -07:00
Stephen Morton
7b794ef343
remove unneeded fake base classes from mmap.mmap ( #12807 )
2024-10-14 23:38:35 +01:00
Stephen Morton
16bab543a3
make os._wrap_close not inherit from TextIOWrapper ( #12774 )
2024-10-14 11:39:30 +02:00
Thomas Grainger
cf9aa45d69
fix weakref.KeyedRef and weakref.ref constructor type ( #12803 )
2024-10-14 10:07:53 +02:00
Brian Schubert
a5174d8150
Set literal default for bz2.BZ2Compressor.__init__ ( #12798 )
2024-10-13 07:54:34 -07:00
Brian Schubert
01036d2a5d
Set literal default arguments for pickle.Pickler.__init__ and pickle.Unpickler.__init__ ( #12797 )
2024-10-13 16:28:16 +02:00
Brian Schubert
88a0f58c67
Reuse hashlib._Hash in hmac ( #12793 )
2024-10-13 14:50:11 +02:00
Max Muoto
5fcd375815
Set default for enumerate's start argument ( #12796 )
2024-10-13 06:01:00 +02:00
Avasam
352cfc9773
Add missing 3.13 source kw-only param to code.InteractiveInterpreter.showsyntaxerror ( #12792 )
2024-10-12 21:10:00 +01:00
Brian Schubert
28f0d6899b
Add slice overload to traceback.FrameSummary.__getitem__ ( #12783 )
2024-10-11 23:42:49 +01:00
Trim21
f625e92ae5
memoryview: remove inheritance from Sequence (#12781 )
...
It doesn't have `index`, `count` or `__reversed__` methods
2024-10-11 17:47:51 +01:00
Stephen Morton
03fe755ec1
move _operator classes to operator ( #12745 )
2024-10-11 14:16:47 +02:00
Sebastian Rittau
17d2e5a862
Clean up common stubtest allowlist ( #12770 )
...
* Move all platform and installation differences into a separate
section.
* Split sections for missing items into "should be fixed" and "should
not be fixed".
* Add "TODO" markers to appropriate sections.
2024-10-10 07:53:26 -07:00
Sebastian Rittau
c490871c32
Add 'nis' to stubtest allowlist ( #12769 )
2024-10-10 16:36:07 +02:00
Jun Komoda
1939ed1dc1
ctypes.POINTER(None) returns ctypes.c_void_p (#12754 )
2024-10-10 12:29:37 +02:00
Stephen Morton
f83b6fadbe
add _asyncio ( #12766 )
...
improves naming and inheritance for asyncio.Future and asyncio.Task
related to https://github.com/python/typeshed/issues/3968
2024-10-09 20:55:28 -07:00
Stephen Morton
42ebc89d8c
remove redundant methods from _io classes ( #12761 )
2024-10-09 20:32:54 -07:00