mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add @disjoint_base decorator in the stdlib (#14599)
And fix some other new stubtest finds.
This commit is contained in:
@@ -6,7 +6,7 @@ from tkinter.constants import *
|
||||
from tkinter.font import _FontDescription
|
||||
from types import GenericAlias, TracebackType
|
||||
from typing import Any, ClassVar, Final, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, overload, type_check_only
|
||||
from typing_extensions import TypeAlias, TypeVarTuple, Unpack, deprecated
|
||||
from typing_extensions import TypeAlias, TypeVarTuple, Unpack, deprecated, disjoint_base
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
from enum import StrEnum
|
||||
@@ -198,7 +198,11 @@ if sys.version_info >= (3, 11):
|
||||
releaselevel: str
|
||||
serial: int
|
||||
|
||||
class _VersionInfoType(_VersionInfoTypeBase): ...
|
||||
if sys.version_info >= (3, 12):
|
||||
class _VersionInfoType(_VersionInfoTypeBase): ...
|
||||
else:
|
||||
@disjoint_base
|
||||
class _VersionInfoType(_VersionInfoTypeBase): ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
class EventType(StrEnum):
|
||||
|
||||
Reference in New Issue
Block a user