Fixes to typing and typing_extensions stubs (#11086)

This commit is contained in:
Alex Waygood
2023-11-29 19:00:58 +00:00
committed by GitHub
parent 1d3a18c6da
commit ef346aba0d
7 changed files with 28 additions and 20 deletions

View File

@@ -149,9 +149,6 @@ dataclasses.KW_ONLY
# We pretend it's a read-only property for forward compatibility with 3.12
typing.ParamSpec(Args|Kwargs).__origin__
# https://github.com/python/mypy/issues/15302
typing.NewType.__call__
# Problematic protocol signatures at runtime, see source code comments.
importlib.abc.Traversable.joinpath
importlib.abc.Traversable.open

View File

@@ -14,7 +14,6 @@ enum.Enum._generate_next_value_
enum.StrEnum._generate_next_value_
importlib.abc.Finder.find_module
tkinter._VersionInfoType.__doc__
typing.NewType.__call__
typing.NewType.__mro_entries__
# Modules that exist at runtime, but shouldn't be added to typeshed

View File

@@ -12,7 +12,6 @@ _csv.Writer
configparser.LegacyInterpolation.__init__
enum.Enum.__init__
tkinter._VersionInfoType.__doc__
typing.NewType.__call__
typing.NewType.__mro_entries__
# ==========
@@ -103,7 +102,6 @@ typing\._SpecialForm.*
typing\.NamedTuple
typing\.LiteralString
typing\.Annotated
typing_extensions\.Protocol
# These only exist to give a better error message if you try to subclass an instance
typing.ParamSpec.__mro_entries__

View File

@@ -523,9 +523,6 @@ typing(_extensions)?\.AbstractSet
typing_extensions.NewType.__mro_entries__ # just exists for an error message
# https://github.com/python/mypy/issues/15302
typing_extensions.NewType.__call__
# Typing-related weirdness
_collections_abc.Callable
_typeshed.* # Utility types for typeshed, doesn't exist at runtime