25 lines
646 B
Python
25 lines
646 B
Python
from typing import Literal
|
|
|
|
class SoftwareVersion(tuple[int, int, int]):
|
|
def __new__(cls, major: int, minor: int, patch: int) -> SoftwareVersion: ...
|
|
def __repr__(self) -> str: ...
|
|
def __str__(self) -> str: ...
|
|
@property
|
|
def major(self) -> int: ...
|
|
@property
|
|
def minor(self) -> int: ...
|
|
@property
|
|
def patch(self) -> int: ...
|
|
fields: tuple[Literal["major"], Literal["minor"], Literal["patch"]]
|
|
|
|
class PygameVersion(SoftwareVersion): ...
|
|
class SDLVersion(SoftwareVersion): ...
|
|
|
|
SDL: SDLVersion
|
|
ver: str
|
|
vernum: PygameVersion
|
|
rev: str
|
|
|
|
# keep in sync with version.py
|
|
__all__ = ["SDL", "ver", "vernum", "rev"]
|