mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use latest Python for stubtest in CI (#10641)
This commit is contained in:
@@ -33,7 +33,7 @@ if sys.version_info >= (3, 11):
|
||||
"verify",
|
||||
]
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
if sys.version_info >= (3, 11):
|
||||
__all__ += ["pickle_by_enum_name", "pickle_by_global_name"]
|
||||
|
||||
_EnumMemberT = TypeVar("_EnumMemberT")
|
||||
@@ -188,7 +188,7 @@ 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):
|
||||
if sys.version_info >= (3, 11):
|
||||
def __copy__(self) -> Self: ...
|
||||
def __deepcopy__(self, memo: Any) -> Self: ...
|
||||
|
||||
@@ -294,6 +294,6 @@ class auto(IntFlag):
|
||||
def value(self) -> Any: ...
|
||||
def __new__(cls) -> Self: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
if sys.version_info >= (3, 11):
|
||||
def pickle_by_global_name(self: Enum, proto: int) -> str: ...
|
||||
def pickle_by_enum_name(self: _EnumMemberT, proto: int) -> tuple[Callable[..., Any], tuple[type[_EnumMemberT], str]]: ...
|
||||
|
||||
Reference in New Issue
Block a user