Commit Graph

169 Commits

Author SHA1 Message Date
Stephen Morton
4944f1b12c add sqlite3.dump (#13085) 2024-11-25 18:14:45 +01:00
Alex Waygood
764d71739b Remove unused allowlist entry (#13107) 2024-11-25 16:53:14 +00:00
Stephen Morton
d14133b3a6 add the undocumented ctypes.macholib module (#13086) 2024-11-25 16:59:59 +01:00
Stephen Morton
927302347f add another batch of encoding submodules (#13088) 2024-11-25 07:31:06 -08:00
Stephen Morton
0a541ad47f add multi-byte encodings submodules (#13093) 2024-11-25 12:14:59 +01:00
Stephen Morton
37eba41407 Add a bunch of encodings submodules (#13087)
each file in this set is the exact same
2024-11-24 07:56:36 -08:00
Stephen Morton
4059f3edb9 add json.scanner module (#13084) 2024-11-24 07:54:45 -08:00
Stephen Morton
f9475acbe0 clean up ipaddress allowlist entries (#13079)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-11-24 07:54:12 -08:00
Stephen Morton
8a485331c9 address some multiprocessing allowlist entries (#13080) 2024-11-23 16:37:22 -08:00
Stephen Morton
9614cc2d88 Fix some CAPI annotations (#13081) 2024-11-24 00:00:49 +00:00
Stephen Morton
7ab6620c0f fix argument for ctypes.string_at and ctypes.wstring_at (#13075) 2024-11-23 05:11:17 -08:00
Stephen Morton
982fb8358b __reversed__ on dict views (#13073)
KeysView doesn't have __reversed__, but dict_keys does. When this
was added to typeshed, we didn't have dict_keys as a separate type.
2024-11-23 05:09:37 -08:00
Stephen Morton
ba9116c684 mark sys.UnraisableHookArgs as type_check_only (#13077)
mark sys.UnraisableHookArgs as type_check_only
2024-11-23 11:16:45 +00:00
Stephen Morton
ff75709586 remove duplicate allowlist entry (#13076)
tkinter.Text.count is in both common.txt and py313.txt
2024-11-23 11:03:54 +00:00
Stephen Morton
b5ce9c5069 remove duplicate allowlist entry (#13074)
asyncio.base_events.BaseEventLoop.subprocess_exec is in both
common.txt and py310.txt for some reason
2024-11-22 22:26:08 -08:00
Stephen Morton
05b969f975 add missing _ctypes functions (#13067) 2024-11-22 16:07:12 +01:00
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