mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
add several NamedTuple base classes (#12987)
This commit is contained in:
@@ -186,13 +186,16 @@ _XYScrollCommand: TypeAlias = str | Callable[[float, float], object]
|
||||
_TakeFocusValue: TypeAlias = bool | Literal[0, 1, ""] | Callable[[str], bool | None] # -takefocus in manual page named 'options'
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
class _VersionInfoType(NamedTuple):
|
||||
@type_check_only
|
||||
class _VersionInfoTypeBase(NamedTuple):
|
||||
major: int
|
||||
minor: int
|
||||
micro: int
|
||||
releaselevel: str
|
||||
serial: int
|
||||
|
||||
class _VersionInfoType(_VersionInfoTypeBase): ...
|
||||
|
||||
class EventType(StrEnum):
|
||||
Activate = "36"
|
||||
ButtonPress = "4"
|
||||
|
||||
Reference in New Issue
Block a user