mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Remove Enum.__hash__, improve Enum.__reduce_ex__ (#8477)
This commit is contained in:
@@ -176,8 +176,7 @@ class Enum(metaclass=EnumMeta):
|
||||
def __new__(cls: type[Self], value: object) -> Self: ...
|
||||
def __dir__(self) -> list[str]: ...
|
||||
def __format__(self, format_spec: str) -> str: ...
|
||||
def __hash__(self) -> Any: ...
|
||||
def __reduce_ex__(self, proto: object) -> Any: ...
|
||||
def __reduce_ex__(self, proto: object) -> tuple[Any, ...]: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
class ReprEnum(Enum): ...
|
||||
|
||||
Reference in New Issue
Block a user