mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 20:36:44 +08:00
Fixes to typing and typing_extensions stubs (#11086)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user