mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add missing _add_value_alias_ method for Python 3.13 enum (#14411)
This commit is contained in:
@@ -219,6 +219,11 @@ class Enum(metaclass=EnumMeta):
|
||||
if sys.version_info >= (3, 12) and sys.version_info < (3, 14):
|
||||
@classmethod
|
||||
def __signature__(cls) -> str: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
# Value may be any type, even in special enums. Enabling Enum parsing from
|
||||
# multiple value types
|
||||
def _add_value_alias_(self, value: Any) -> None: ...
|
||||
def _add_alias_(self, name: str) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
class ReprEnum(Enum): ...
|
||||
|
||||
Reference in New Issue
Block a user