@@ -183,11 +183,6 @@ _collections_abc.AsyncGenerator.__anext__
183183_collections_abc.AsyncGenerator.aclose
184184_collections_abc.AsyncIterator.__anext__
185185
186- # Pretend typing.ByteString is a Union, to better match its documented semantics.
187- # As a side effect, this changes the definition of collections.abc.ByteString, which is okay,
188- # because it's not an ABC that makes any sense and was deprecated in 3.12
189- _collections_abc.ByteString
190-
191186_collections_abc.Callable # Typing-related weirdness
192187_collections_abc.Mapping.get # Adding None to the Union messed up mypy
193188_collections_abc.Sequence.index # Supporting None in end is not mandatory
@@ -215,12 +210,7 @@ _?ast.stmt.__init__
215210
216211_ast.ImportFrom.level # None on the class, but never None on instances
217212
218- ast.Bytes.__new__ # runtime is *args, **kwargs due to a wrapper, but we have more accurate signatures in the stubs
219- ast.Ellipsis.__new__ # runtime is *args, **kwargs due to a wrapper, but we have more accurate signatures in the stubs
220213ast.ImportFrom.level # None on the class, but never None on instances
221- ast.NameConstant.__new__ # runtime is *args, **kwargs due to a wrapper, but we have more accurate signatures in the stubs
222- ast.Num.__new__ # runtime is *args, **kwargs due to a wrapper, but we have more accurate signatures in the stubs
223- ast.Str.__new__ # runtime is *args, **kwargs due to a wrapper, but we have more accurate signatures in the stubs
224214ast.NodeVisitor.visit_\w+ # Methods are discovered dynamically, see #3796
225215_?asyncio.Future.__init__ # Usually initialized from c object
226216asyncio.futures.Future.__init__ # Usually initialized from c object
@@ -312,7 +302,6 @@ enum.auto.__xor__ # enum.auto is magic, see comments
312302functools._lru_cache_wrapper.cache_parameters # Cannot be detected statically
313303functools.cached_property.__set__ # doesn't exist, but cached_property is settable by another mechanism
314304
315- _?hashlib.scrypt # Raises TypeError if salt, n, r or p are None
316305hmac.new # Raises TypeError if optional argument digestmod is not provided
317306http.HTTPStatus.description # set in __new__; work-around for enum wierdness
318307http.HTTPStatus.phrase # set in __new__; work-around for enum wierdness
@@ -325,7 +314,6 @@ importlib._bootstrap_external.FileLoader.get_resource_reader
325314importlib._bootstrap_external.FileLoader.load_module
326315importlib.abc.FileLoader.get_filename
327316importlib.abc.FileLoader.load_module
328- importlib.abc.Traversable.open # Problematic protocol signature at runtime, see source code comments.
329317importlib.machinery.ExtensionFileLoader.get_filename
330318
331319# We can't distinguish not having a default value from having a default value of inspect.Parameter.empty
@@ -472,7 +460,6 @@ typing_extensions\.TypeVar.*
472460typing_extensions\._SpecialForm.*
473461
474462# Special primitives
475- typing\.ByteString
476463typing(_extensions)?\.AbstractSet
477464typing(_extensions)?\.AsyncGenerator
478465typing(_extensions)?\.AsyncIterable
@@ -527,10 +514,6 @@ typing(_extensions)?\.(Async)?ContextManager
527514typing(_extensions)?\.IO\.__iter__
528515typing(_extensions)?\.IO\.__next__
529516
530- # Will always raise. Not included to avoid type checkers inferring that
531- # TypeAliasType instances are callable.
532- typing_extensions.TypeAliasType.__call__
533-
534517types.MethodType.__closure__ # read-only but not actually a property; stubtest thinks it doesn't exist.
535518types.MethodType.__code__ # read-only but not actually a property; stubtest thinks it doesn't exist.
536519types.MethodType.__defaults__ # read-only but not actually a property; stubtest thinks it doesn't exist.
0 commit comments