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

View File

@@ -198,6 +198,9 @@ class Options(enum.IntFlag):
OP_ENABLE_MIDDLEBOX_COMPAT: int
if sys.platform == "linux":
OP_IGNORE_UNEXPECTED_EOF: int
if sys.version_info >= (3, 12) and sys.platform != "linux":
OP_ENABLE_KTLS: int
OP_IGNORE_UNEXPECTED_EOF: int
OP_ALL: Options
OP_NO_SSLv2: Options
@@ -216,6 +219,9 @@ if sys.version_info >= (3, 8):
OP_ENABLE_MIDDLEBOX_COMPAT: Options
if sys.platform == "linux":
OP_IGNORE_UNEXPECTED_EOF: Options
if sys.version_info >= (3, 12) and sys.platform != "linux":
OP_ENABLE_KTLS: Options
OP_IGNORE_UNEXPECTED_EOF: Options
HAS_NEVER_CHECK_COMMON_NAME: bool
HAS_SSLv2: bool