@@ -12,143 +12,41 @@ _frozen_importlib_external.SourceFileLoader.source_to_code
1212_frozen_importlib_external.SourceLoader.source_to_code
1313_frozen_importlib_external._LoaderBasics.load_module
1414_frozen_importlib_external.cache_from_source
15- _pyrepl.base_eventqueue
16- _pyrepl.commands
17- _pyrepl.completing_reader
18- _pyrepl.console
19- _pyrepl.content
20- _pyrepl.fancycompleter
21- _pyrepl.historical_reader
22- _pyrepl.input
23- _pyrepl.keymap
24- _pyrepl.layout
25- _pyrepl.main
26- _pyrepl.pager
27- _pyrepl.reader
28- _pyrepl.readline
29- _pyrepl.render
30- _pyrepl.simple_interact
31- _pyrepl.terminfo
32- _pyrepl.trace
33- _pyrepl.types
34- _pyrepl.utils
35- _pyrepl.windows_console
36- _pyrepl.windows_eventqueue
3715_struct.Struct.pack_into
3816_struct.pack
3917_struct.pack_into
4018_thread.RLock.__exit__
4119_thread.lock.__exit__
42- annotationlib.ForwardRef.__arg__
43- annotationlib.ForwardRef.__ast_node__
44- annotationlib.ForwardRef.__cell__
45- annotationlib.ForwardRef.__code__
46- annotationlib.ForwardRef.__extra_names__
47- annotationlib.ForwardRef.__globals__
48- annotationlib.ForwardRef.__init_subclass__
49- annotationlib.ForwardRef.__owner__
50- annotationlib.ForwardRef.__stringifier_dict__
51- ast.type_param.__init__
52- # base64.b64decode uses a private sentinel list as the default for parameters whose public types are bool/buffer.
53- base64.b64decode
54- codecs.backslashreplace_errors
55- codecs.ignore_errors
56- codecs.namereplace_errors
57- codecs.replace_errors
58- codecs.strict_errors
59- codecs.xmlcharrefreplace_errors
60- concurrent.interpreters._crossinterp.UNBOUND_ERROR
61- concurrent.interpreters._crossinterp.UNBOUND_REMOVE
62- concurrent.interpreters._crossinterp.UnboundItem.singleton
63- concurrent.interpreters._crossinterp.classonly
64- concurrent.interpreters._crossinterp.classonly.__class_getitem__
65- concurrent.interpreters._crossinterp.classonly.__func__
66- concurrent.interpreters._crossinterp.classonly.__get__
67- concurrent.interpreters._crossinterp.classonly.__init__
68- concurrent.interpreters._crossinterp.classonly.__isabstractmethod__
69- concurrent.interpreters._crossinterp.classonly.__set_name__
70- concurrent.interpreters._crossinterp.classonly.__wrapped__
7120copy.deepcopy
7221dataclasses._MISSING_TYPE
7322dataclasses.MISSING
7423dataclasses.field
7524doctest.DocTestRunner.report_skip
7625enum.__all__
77- enum.auto.__init__
78- enum.auto.value
79- functools.partialmethod.__new__
80- http.HTTPMethod.description
8126importlib._abc.Loader.load_module
8227importlib._bootstrap_external.NamespacePath
8328importlib.abc.InspectLoader.source_to_code
8429importlib.abc.MetaPathFinder.discover
8530importlib.abc.PathEntryFinder.discover
86- importlib.resources._common.files
8731importlib.resources._common.package_to_anchor
88- importlib.resources.abc.Traversable.open
89- inspect._ParameterKind.description
90- io.Reader.__class_getitem__
91- io.Reader.read
92- io.Writer.__class_getitem__
93- io.Writer.write
9432mailbox.Mailbox.__enter__
9533mailbox.Mailbox.__exit__
9634mailbox._ProxyFile.__class_getitem__
97- multiprocessing.managers.BaseListProxy.clear
98- multiprocessing.managers.BaseListProxy.copy
99- multiprocessing.managers._BaseDictProxy.__iter__
100- multiprocessing.managers._BaseDictProxy.__len__
101- multiprocessing.managers._BaseDictProxy.__reversed__
102- multiprocessing.managers._BaseDictProxy.clear
103- multiprocessing.managers._BaseDictProxy.copy
104- multiprocessing.managers._BaseDictProxy.items
105- multiprocessing.managers._BaseDictProxy.keys
106- multiprocessing.managers._BaseDictProxy.popitem
107- multiprocessing.managers._BaseDictProxy.values
108- multiprocessing.managers._BaseSetProxy.__iter__
109- multiprocessing.managers._BaseSetProxy.__len__
110- multiprocessing.managers._BaseSetProxy.clear
111- multiprocessing.managers._BaseSetProxy.copy
112- multiprocessing.managers._BaseSetProxy.pop
11335multiprocessing.process.BaseProcess.__init__
114- sre_compile
115- sre_constants
116- sre_parse
117- sys.__jit
118- sys._monitoring
119- sys.last_exc
12036threading.Condition.locked
12137tkinter.Image.__iter__
12238tkinter.Misc.__iter__
12339tkinter.font.Font.__iter__
12440tkinter.simpledialog.__all__
125- types.MappingProxyType.get
126- types.SimpleNamespace.__delattr__
127- types.SimpleNamespace.__setattr__
128- types.UnionType.__class_getitem__
129- types.UnionType.__mro_entries__
130- types.UnionType.__name__
131- types.UnionType.__qualname__
132- typing.LiteralString
133- typing.NewType.__mro_entries__
134- typing.ParamSpec.__mro_entries__
135- typing.ParamSpecArgs.__mro_entries__
136- typing.ParamSpecKwargs.__mro_entries__
137- typing.SupportsAbs.__type_params__
138- typing.SupportsRound.__type_params__
139- typing.TypeVar.__mro_entries__
140- typing.TypeVarTuple.__mro_entries__
141- typing.Union
142- typing._SpecialForm.__mro_entries__
14341typing_extensions.__all__
144- typing_extensions.Protocol
14542xml.etree.ElementTree.__all__
14643
14744# =============================================================
148- # Allowlist entries that cannot or should not be fixed; >=3.15
45+ # Allowlist entries that cannot or should not be fixed; >= 3.15
14946# =============================================================
15047
15148# runtime default is a list object used as a sentinel
49+ base64.b64decode
15250urllib.parse.urlunparse
15351urllib.parse.urlunsplit
15452
@@ -191,3 +89,130 @@ tkinter.Pack.content
19189tkinter.Pack.pack_content
19290tkinter.Place.content
19391tkinter.Place.place_content
92+
93+
94+ # =============================================================
95+ # Allowlist entries that cannot or should not be fixed; >= 3.14
96+ # =============================================================
97+
98+ # Undocumented private attributes
99+ .*\.ForwardRef\.__arg__
100+ .*\.ForwardRef\.__ast_node__
101+ .*\.ForwardRef\.__cell__
102+ .*\.ForwardRef\.__code__
103+ .*\.ForwardRef\.__extra_names__
104+ .*\.ForwardRef\.__globals__
105+ .*\.ForwardRef\.__init_subclass__
106+ .*\.ForwardRef\.__owner__
107+ .*\.ForwardRef\.__stringifier_dict__
108+
109+ # Runtime AST node runtime constructor behaviour is too loose.
110+ # For static typing, the loose behaviour is undesirable (https://github.com/python/typeshed/issues/8378).
111+ # For the runtime, the loose behaviour is deprecated in Python 3.13 (https://github.com/python/cpython/issues/105858).
112+ _?ast.type_param.__init__
113+
114+ # Decorator approximated by classmethod
115+ concurrent.interpreters._crossinterp.classonly.*
116+ # Method using this decorator
117+ concurrent.interpreters._crossinterp.UnboundItem.singleton
118+
119+ # object() sentinels at runtime represented by NewTypes in the stubs
120+ concurrent.interpreters._crossinterp.UNBOUND_ERROR
121+ concurrent.interpreters._crossinterp.UNBOUND_REMOVE
122+
123+ # Assigning `__new__` causes `func` not to get recognized.
124+ functools.partialmethod.__new__
125+
126+ # These protocols use ABC hackery at runtime.
127+ (io|typing_extensions)\.Reader\.__class_getitem__
128+ (io|typing_extensions)\.Reader\.read
129+ (io|typing_extensions)\.Writer\.__class_getitem__
130+ (io|typing_extensions)\.Writer\.write
131+
132+ # These multiprocessing proxy methods have *args, **kwargs signatures at runtime,
133+ # but have more precise (accurate) signatures in the stub.
134+ multiprocessing.managers.BaseListProxy.clear
135+ multiprocessing.managers.BaseListProxy.copy
136+ multiprocessing.managers._BaseDictProxy.__reversed__
137+ multiprocessing.managers._BaseSetProxy.__iter__
138+ multiprocessing.managers._BaseSetProxy.__len__
139+ multiprocessing.managers._BaseSetProxy.clear
140+ multiprocessing.managers._BaseSetProxy.copy
141+ multiprocessing.managers._BaseSetProxy.pop
142+
143+ # Union and UnionType are aliases in 3.14 but type checkers need some changes.
144+ typing.Union
145+ types.UnionType.__class_getitem__
146+ types.UnionType.__mro_entries__
147+ types.UnionType.__name__
148+ types.UnionType.__qualname__
149+
150+
151+ # =============================================================
152+ # Allowlist entries that cannot or should not be fixed; >= 3.13
153+ # =============================================================
154+
155+ _pyrepl\..+ # The internal implementation of the REPL on py313+; not for public consumption
156+ codecs.backslashreplace_errors # Runtime incorrectly has `self`
157+ codecs.ignore_errors # Runtime incorrectly has `self`
158+ codecs.namereplace_errors # Runtime incorrectly has `self`
159+ codecs.replace_errors # Runtime incorrectly has `self`
160+ codecs.strict_errors # Runtime incorrectly has `self`
161+ codecs.xmlcharrefreplace_errors # Runtime incorrectly has `self`
162+
163+ # These multiprocessing proxy methods have *args, **kwargs signatures at runtime,
164+ # but have more precise (accurate) signatures in the stub.
165+ multiprocessing.managers._BaseDictProxy.__iter__
166+ multiprocessing.managers._BaseDictProxy.__len__
167+ multiprocessing.managers._BaseDictProxy.clear
168+ multiprocessing.managers._BaseDictProxy.copy
169+ multiprocessing.managers._BaseDictProxy.items
170+ multiprocessing.managers._BaseDictProxy.keys
171+ multiprocessing.managers._BaseDictProxy.popitem
172+ multiprocessing.managers._BaseDictProxy.values
173+
174+ # To match `dict`, we lie about the runtime, but use overloads to match the correct behavior.
175+ types.MappingProxyType.get
176+
177+ typing_extensions.Protocol # Super-special typing primitive
178+
179+
180+ # =============================================================
181+ # Allowlist entries that cannot or should not be fixed; >= 3.12
182+ # =============================================================
183+
184+ # Deprecated argument is supported at runtime by renaming it through a decorator.
185+ importlib.resources._common.files
186+
187+ sys._monitoring # Doesn't really exist. See comments in the stub.
188+ sys.__jit # Similar to sys._monitoring
189+ sys.last_exc # Not always defined.
190+
191+ # Types that require `__setattr__` and `__delattr__` for typing purposes.
192+ types.SimpleNamespace.__delattr__
193+ types.SimpleNamespace.__setattr__
194+
195+ # These only exist to give a better error message if you try to subclass an instance.
196+ typing.ParamSpec.__mro_entries__
197+ typing.ParamSpecArgs.__mro_entries__
198+ typing.ParamSpecKwargs.__mro_entries__
199+ typing.TypeVar.__mro_entries__
200+ typing.TypeVarTuple.__mro_entries__
201+
202+ # These exist at runtime because the protocol uses PEP 695 syntax in CPython.
203+ typing.SupportsAbs.__type_params__
204+ typing.SupportsRound.__type_params__
205+
206+
207+ # =============================================================
208+ # Allowlist entries that cannot or should not be fixed; >= 3.11
209+ # =============================================================
210+
211+ enum.auto.__init__ # The stub for enum.auto is nothing like the implementation
212+ enum.auto.value # The stub for enum.auto is nothing like the implementation
213+ http.HTTPMethod.description # Mutable instance attribute at runtime but we pretend it's a property
214+ importlib.resources.abc.Traversable.open # Problematic protocol signature at runtime, see source code comments.
215+ inspect._ParameterKind.description # Still exists, but stubtest can't see it
216+ typing.LiteralString # Super-special typing primitive
217+ typing.NewType.__mro_entries__ # Only exists for an error message.
218+ typing._SpecialForm.__mro_entries__ # Super-special typing primitive
0 commit comments