1- # =========================
2- # New errors in Python 3.15
3- # =========================
1+ # ============================================
2+ # TODO: Allowlist entries that should be fixed
3+ # ============================================
44
5- (os.NODEV)?
6- (posix.NODEV)?
7- (resource.RLIMIT_NTHR)?
8- (resource.RLIMIT_THREADS)?
9- (resource.RLIMIT_UMTXP)?
10-
11- # Importlib exposes deprecated or implementation-detail runtime APIs that the stubs deliberately omit or tighten.
125_frozen_importlib.BuiltinImporter.load_module
136_frozen_importlib.FrozenImporter.load_module
147_frozen_importlib_external.FileFinder.discover
@@ -19,29 +12,33 @@ _frozen_importlib_external.SourceFileLoader.source_to_code
1912_frozen_importlib_external.SourceLoader.source_to_code
2013_frozen_importlib_external._LoaderBasics.load_module
2114_frozen_importlib_external.cache_from_source
22- importlib._abc.Loader.load_module
23- importlib._bootstrap_external.NamespacePath
24- importlib.abc.InspectLoader.source_to_code
25- importlib.abc.MetaPathFinder.discover
26- importlib.abc.PathEntryFinder.discover
27-
28- # The internal implementation of the REPL on py313+; not for public consumption.
29- _pyrepl\..+
30-
31- # Argument Clinic and C variadic signatures are intentionally more precise in the stubs.
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
3237_struct.Struct.pack_into
3338_struct.pack
3439_struct.pack_into
35- ctypes.SetPointerType
36- marshal.dump
37- marshal.dumps
38- symtable.symtable
39-
40- # Context manager __exit__ signatures are runtime implementation details; the stubs follow the protocol.
4140_thread.RLock.__exit__
4241_thread.lock.__exit__
43-
44- # Undocumented private attributes on ForwardRef; same policy as py314.
4542annotationlib.ForwardRef.__arg__
4643annotationlib.ForwardRef.__ast_node__
4744annotationlib.ForwardRef.__cell__
@@ -50,86 +47,53 @@ annotationlib.ForwardRef.__extra_names__
5047annotationlib.ForwardRef.__globals__
5148annotationlib.ForwardRef.__init_subclass__
5249annotationlib.ForwardRef.__owner__
53- annotationlib.ForwardRef.__resolved_str__
54- annotationlib.ForwardRef.__resolved_str_cache__
55- annotationlib.ForwardRef.__slots__
5650annotationlib.ForwardRef.__stringifier_dict__
57-
58- # Static constructor behavior remains intentionally stricter for runtime AST helpers.
5951ast.type_param.__init__
60-
61- # Runtime incorrectly has `self`; same policy as py314.
52+ # base64.b64decode uses a private sentinel list as the default for parameters whose public types are bool/buffer.
53+ base64.b64decode
6254codecs.backslashreplace_errors
6355codecs.ignore_errors
6456codecs.namereplace_errors
6557codecs.replace_errors
6658codecs.strict_errors
6759codecs.xmlcharrefreplace_errors
68-
69- # Decorator/runtime sentinel implementation details; same policy as py314.
7060concurrent.interpreters._crossinterp.UNBOUND_ERROR
7161concurrent.interpreters._crossinterp.UNBOUND_REMOVE
7262concurrent.interpreters._crossinterp.UnboundItem.singleton
73- concurrent.interpreters._crossinterp.classonly.*
74-
75- # object() sentinels and overloaded helper defaults are modeled more usefully in the stubs.
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__
7671copy.deepcopy
77- dataclasses.MISSING
7872dataclasses._MISSING_TYPE
73+ dataclasses.MISSING
7974dataclasses.field
80-
81- # Runtime defaults/sentinels are not expressible without losing useful static signatures.
8275doctest.DocTestRunner.report_skip
83- functools.partialmethod.__new__
84- gzip.compress
85- importlib.resources._common.files
86- importlib.resources._common.package_to_anchor
87- inspect.getfullargspec
88- multiprocessing.context.BaseContext.set_forkserver_preload
89- multiprocessing.forkserver.ForkServer.set_forkserver_preload
90- pdb.Pdb.print_stack_entry
91- pkgutil.resolve_name
92- pprint.PrettyPrinter.__init__
93- pprint.pformat
94- pprint.pprint
95- site.addsitedir
96- site.addsitepackages
97- site.addusersitepackages
98- site.process_startup_files
99-
100- # The stub for enum.auto is nothing like the implementation; same policy as py314.
10176enum.__all__
10277enum.auto.__init__
10378enum.auto.value
104-
105- # Complex ctypes scalar runtime metadata is not useful for static checking.
106- (ctypes.c_double_complex._type_)?
107- (ctypes.c_float_complex._type_)?
108- (ctypes.c_longdouble_complex._type_)?
109-
110- # Runtime metadata/export lists changed, but the stubs expose the supported API surface.
79+ functools.partialmethod.__new__
11180http.HTTPMethod.description
112- inspect._ParameterKind.description
113- (os.__all__)?
114- sys.last_exc
115- threading.Condition.locked
116- typing_extensions.__all__
117- xml.etree.ElementTree.__all__
118-
119- # Problematic protocol signatures at runtime; same policy as py314.
81+ importlib._abc.Loader.load_module
82+ importlib._bootstrap_external.NamespacePath
83+ importlib.abc.InspectLoader.source_to_code
84+ importlib.abc.MetaPathFinder.discover
85+ importlib.abc.PathEntryFinder.discover
86+ importlib.resources._common.files
87+ importlib.resources._common.package_to_anchor
12088importlib.resources.abc.Traversable.open
121- (io|typing_extensions)\.Reader\.__class_getitem__
122- (io|typing_extensions)\.Reader\.read
123- (io|typing_extensions)\.Writer\.__class_getitem__
124- (io|typing_extensions)\.Writer\.write
125-
126- # Runtime context-manager/proxy wrappers are loose; stubs retain the useful public protocol.
89+ inspect._ParameterKind.description
90+ io.Reader.__class_getitem__
91+ io.Reader.read
92+ io.Writer.__class_getitem__
93+ io.Writer.write
12794mailbox.Mailbox.__enter__
12895mailbox.Mailbox.__exit__
12996mailbox._ProxyFile.__class_getitem__
130-
131- # These multiprocessing proxy methods have *args, **kwargs signatures at runtime,
132- # but have more precise signatures in the stubs; same policy as py314.
13397multiprocessing.managers.BaseListProxy.clear
13498multiprocessing.managers.BaseListProxy.copy
13599multiprocessing.managers._BaseDictProxy.__iter__
@@ -147,39 +111,17 @@ multiprocessing.managers._BaseSetProxy.clear
147111multiprocessing.managers._BaseSetProxy.copy
148112multiprocessing.managers._BaseSetProxy.pop
149113multiprocessing.process.BaseProcess.__init__
150-
151- # Runtime path APIs include implementation hooks/deprecated behavior that the stubs intentionally hide or tighten.
152- (ntpath.realpath)?
153-
154- # base64.b64decode uses a private sentinel list as the default for parameters whose public types are bool/buffer.
155- base64.b64decode
156-
157- # New profiling package internals are not part of the typed public surface.
158- profiling\.sampling\..+
159-
160- # readline hook availability is build-dependent.
161- (readline.get_pre_input_hook)?
162-
163- # Doesn't really exist, or is hidden behind implementation guards; see comments in the sys stub.
164114sys.__jit
165115sys._monitoring
166-
167- # Tkinter runtime mixins expose Tcl container behavior that is not part of the typed public API.
168- tkinter.Grid.content
116+ sys.last_exc
117+ threading.Condition.locked
169118tkinter.Image.__iter__
170119tkinter.Misc.__iter__
171- tkinter.Misc.content
172- tkinter.Pack.content
173- tkinter.Place.content
174120tkinter.font.Font.__iter__
175121tkinter.simpledialog.__all__
176-
177- # Runtime attribute mutability differs from the useful static model; same policy as py314.
178122types.MappingProxyType.get
179123types.SimpleNamespace.__delattr__
180124types.SimpleNamespace.__setattr__
181-
182- # Super-special typing primitives and runtime aliases; same policy as py314.
183125types.UnionType.__class_getitem__
184126types.UnionType.__mro_entries__
185127types.UnionType.__name__
@@ -195,4 +137,50 @@ typing.TypeVar.__mro_entries__
195137typing.TypeVarTuple.__mro_entries__
196138typing.Union
197139typing._SpecialForm.__mro_entries__
140+ typing_extensions.__all__
198141typing_extensions.Protocol
142+ xml.etree.ElementTree.__all__
143+
144+ # =============================================================
145+ # Allowlist entries that cannot or should not be fixed; >=3.15
146+ # =============================================================
147+
148+ # runtime default is a list object used as a sentinel
149+ urllib.parse.urlunparse
150+ urllib.parse.urlunsplit
151+
152+ # Internal implementation details of the sampling profiler.
153+ profiling.sampling.binary_collector
154+ profiling.sampling.binary_reader
155+ profiling.sampling.cli
156+ profiling.sampling.constants
157+ profiling.sampling.dump
158+ profiling.sampling.errors
159+ profiling.sampling.gecko_collector.CATEGORY_CODE_TYPE
160+ profiling.sampling.gecko_collector.CATEGORY_CPU
161+ profiling.sampling.gecko_collector.CATEGORY_EXCEPTION
162+ profiling.sampling.gecko_collector.CATEGORY_GC
163+ profiling.sampling.gecko_collector.CATEGORY_GIL
164+ profiling.sampling.gecko_collector.CATEGORY_NATIVE
165+ profiling.sampling.gecko_collector.CATEGORY_OPCODES
166+ profiling.sampling.gecko_collector.CATEGORY_OTHER
167+ profiling.sampling.gecko_collector.CATEGORY_PYTHON
168+ profiling.sampling.gecko_collector.DEFAULT_SUBCATEGORY
169+ profiling.sampling.gecko_collector.FRAME_ADDRESS_NONE
170+ profiling.sampling.gecko_collector.FRAME_INLINE_DEPTH_ROOT
171+ profiling.sampling.gecko_collector.GECKO_CATEGORIES
172+ profiling.sampling.gecko_collector.GECKO_FORMAT_VERSION
173+ profiling.sampling.gecko_collector.GECKO_PREPROCESSED_VERSION
174+ profiling.sampling.gecko_collector.PROCESS_TYPE_MAIN
175+ profiling.sampling.gecko_collector.RESOURCE_TYPE_LIBRARY
176+ profiling.sampling.gecko_collector.STACKWALK_DISABLED
177+ profiling.sampling.heatmap_collector.FileStats
178+ profiling.sampling.heatmap_collector.TreeNode
179+ profiling.sampling.module_utils
180+ profiling.sampling.opcode_utils
181+ profiling.sampling.sample
182+
183+ # These conflicting aliases are just like tkinter.*.slaves in common.txt.
184+ tkinter.Grid.content
185+ tkinter.Pack.content
186+ tkinter.Place.content
0 commit comments