Remove Enum.__hash__, improve Enum.__reduce_ex__ (#8477)

This commit is contained in:
Nikita Sobolev
2022-08-03 20:19:49 +03:00
committed by GitHub
parent bd7a02fad4
commit b19d447721

View File

@@ -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): ...