mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-31 04:12:52 +08:00
Update typing_extensions to 4.13.0rc1 (#13671)
Also sort __all__ to match the implementation
This commit is contained in:
@@ -501,8 +501,9 @@ typing(_extensions)?\.ValuesView
|
||||
typing_extensions\.Final
|
||||
typing_extensions\.LiteralString
|
||||
|
||||
typing._SpecialForm.__call__ # Typing-related weirdness
|
||||
typing._SpecialForm.__init__ # Typing-related weirdness
|
||||
# Typing-related weirdness
|
||||
typing._SpecialForm.__call__
|
||||
typing._SpecialForm.__init__
|
||||
|
||||
# These are abstract properties at runtime,
|
||||
# but marking them as such in the stub breaks half the the typed-Python ecosystem (see #8726)
|
||||
@@ -525,6 +526,10 @@ typing(_extensions)?\.(Async)?ContextManager
|
||||
typing(_extensions)?\.IO\.__iter__
|
||||
typing(_extensions)?\.IO\.__next__
|
||||
|
||||
# Will always raise. Not included to avoid type checkers inferring that
|
||||
# TypeAliasType instances are callable.
|
||||
typing_extensions.TypeAliasType.__call__
|
||||
|
||||
types.MethodType.__closure__ # read-only but not actually a property; stubtest thinks it doesn't exist.
|
||||
types.MethodType.__code__ # read-only but not actually a property; stubtest thinks it doesn't exist.
|
||||
types.MethodType.__defaults__ # read-only but not actually a property; stubtest thinks it doesn't exist.
|
||||
|
||||
@@ -240,9 +240,6 @@ poplib.POP3_SSL.stls # bad declaration of inherited function. See poplib.pyi
|
||||
tkinter.test # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
tkinter\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
|
||||
@@ -204,9 +204,6 @@ poplib.POP3_SSL.stls # bad declaration of inherited function. See poplib.pyi
|
||||
tkinter.test # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
tkinter\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
|
||||
zoneinfo.ZoneInfo.from_file # Pos-only parameters had different "names" in different Python versions
|
||||
|
||||
# Initialized at runtime
|
||||
typing_extensions.TypeAliasType.__parameters__
|
||||
typing_extensions.TypeAliasType.__value__
|
||||
|
||||
|
||||
# ====================================
|
||||
# Pre-existing errors from Python 3.11
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
|
||||
zoneinfo.ZoneInfo.from_file # Pos-only parameters had different "names" in different Python versions
|
||||
|
||||
# Initialized at runtime
|
||||
typing_extensions.TypeAliasType.__parameters__
|
||||
typing_extensions.TypeAliasType.__value__
|
||||
|
||||
|
||||
# =======
|
||||
# >= 3.11
|
||||
|
||||
@@ -213,9 +213,6 @@ poplib.POP3_SSL.stls # bad declaration of inherited function. See poplib.pyi
|
||||
tkinter.test # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
tkinter\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user