Stephen Morton
1af850d2b0
remove _posixsubprocess.cloexec_pipe ( #13066 )
...
removed from cpython in 2013...
daf455554b
2024-11-21 19:53:37 -08:00
Stephen Morton
bb0e1e2c16
_csv.Reader and _csv.Writer ( #13057 )
2024-11-21 11:13:53 +01:00
Stephen Morton
32f48a5eae
add several NamedTuple base classes ( #12987 )
2024-11-21 10:52:31 +01:00
Stephen Morton
308a09f056
Clean up/rework socket constants and add __all__ ( #13044 )
2024-11-20 14:05:11 +01:00
Stephen Morton
be624e5124
add email.__all__ ( #13047 )
2024-11-20 13:57:41 +01:00
Stephen Morton
971f0c64c6
Add xml.__all__, remove import not existing at runtime ( #13048 )
2024-11-20 13:56:44 +01:00
Rebecca Chen
921c65304e
Annotate TypedDict as _SpecialForm rather than object. ( #12985 )
...
* Annotate TypedDict as _SpecialForm rather than object.
Let's see if this works...
* Get typing_extensions.TypedDict as well, try to fix tests.
* Import typing_extensions.TypedDict, delete _SpecialForm.__getitem__.
* Back out deletion of _SpecialForm.__getitem__.
2024-11-19 22:50:42 -08:00
Stephen Morton
5d859ca366
Add _hashlib module ( #13030 )
2024-11-18 13:08:46 +01:00
Stephen Morton
b2c964fdea
Make inheritance and metaclass of ctypes better match reality ( #12982 )
2024-11-18 12:32:20 +01:00
Stephen Morton
780626ee36
Fix webbrowser.MacOSX.__init__ ( #13035 )
2024-11-18 11:10:35 +00:00
Stephen Morton
68d05208d4
add _curses_panel module ( #13028 )
2024-11-17 17:52:17 +00:00
Stephen Morton
7c7629d909
add typing._Final ( #13015 )
...
This is the subset of typing module internal base classes
that are stable over all supported versions of python.
2024-11-16 16:55:38 +01:00
Stephen Morton
074cef02a5
add multiprocessing.managers._BaseDictProxy ( #12951 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-11-12 12:47:02 +00:00
Stephen Morton
76537eb81b
BZ2Compressor and BZ2Decompressor live in the _bz2 module ( #12976 )
2024-11-08 17:47:00 +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
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
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
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
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
Brian Schubert
efccd7455a
hashlib: fix sha3 and shake hash constructors, remove hash object __init__s ( #12906 )
2024-10-25 07:14:40 -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
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
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
Sebastian Rittau
ebdd2c528d
Update mypy to 1.12.0 ( #12859 )
2024-10-19 16:45:38 +01: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
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
Stephen Morton
16bab543a3
make os._wrap_close not inherit from TextIOWrapper ( #12774 )
2024-10-14 11:39:30 +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
2b1c7d55b9
re-sort io classes into _io ( #12755 )
...
This version keeps it simple and clean: No changes to class bodies.
The only changes here are moving between files and updating the
naming and inheritance.
Related to #3968 and split from #12740 .
2024-10-08 21:32:10 -07:00
Stephen Morton
3e29e05e4a
Experiment: remove IntFlag from enum.auto ( #12760 )
...
comments in https://github.com/python/typeshed/issues/10384 suggest
that type checkers should special case enum.auto rather than
relying on the IntFlag hack. It's been a while since then, do we
still need it?
2024-10-08 21:24:31 -07:00
Avasam
1f4031cc96
Add __code__ to types.MethodType ( #12749 )
2024-10-08 10:30:49 +02:00
Stephen Morton
39650b43b5
add _sqlite3 module ( #11174 )
...
This aligns with the implementation while giving greater fidelity
to runtime naming and inheritance
Related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141
2024-10-04 17:28:26 -07:00
sobolevn
d16fe74e1f
Fix _csv.Dialect.__init__ ( #12320 )
2024-10-03 11:33:56 +02:00
Alex Waygood
45f96fe343
Move multiprocessing test-case file to the right place ( #12727 )
2024-10-02 16:36:24 +01:00
Sebastian Rittau
e4c84dfb11
Make email.policy classes generic ( #12724 )
2024-10-02 16:42:07 +02:00
Stephen Morton
4f37d8fff8
add _ssl module ( #11155 )
...
Really all I needed for fixing the inheritance was _ssl._SSLContext.
But then I needed all the other stuff in _ssl, and if I was doing that
I wanted to do a thorough job of it.
Motivation was originally related to https://github.com/python/typeshed/issues/3968 ,
but we're well beyond that now, really.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-10-01 20:10:51 -07:00
Stephen Morton
c43894568f
resort weakref classes ( #11165 )
...
This improves fidelity of naming and inheritance on 3.11+
related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-10-01 19:50:10 -07:00
Akuli
13a74a5211
Update tkinter.Text.count() for Python 3.13 (Akuli's version) ( #12629 )
2024-09-24 23:08:11 -07:00
Max Muoto
85121de466
Update importlib resources for 3.13 ( #12298 )
2024-09-16 20:21:35 +02:00
Max Muoto
dbe4d32a2a
Add fchmod and lchmod for Windows on 3.13 ( #12662 )
2024-09-15 22:13:09 +02:00
Max Muoto
29c8026910
Add missing winapi functions for 3.13 ( #12658 )
2024-09-14 12:01:42 +02:00
Max Muoto
eaeb56ffcf
Add missing winapi constants for 3.13 ( #12657 )
2024-09-14 11:39:22 +02:00