Fix stubtest for Python 3.12.0rc1 (#10541)

This commit is contained in:
Alex Waygood
2023-08-07 20:41:31 +01:00
committed by GitHub
parent ab22048661
commit 230a8f7c6c
2 changed files with 9 additions and 0 deletions

View File

@@ -193,6 +193,9 @@ class Enum(metaclass=EnumMeta):
def __hash__(self) -> int: ...
def __format__(self, format_spec: str) -> str: ...
def __reduce_ex__(self, proto: Unused) -> tuple[Any, ...]: ...
if sys.version_info >= (3, 12):
def __copy__(self) -> Self: ...
def __deepcopy__(self, memo: Any) -> Self: ...
if sys.version_info >= (3, 11):
class ReprEnum(Enum): ...