Files
Function/.venv/lib/python3.14/site-packages/pygame/_data_classes.py
T
2026-11-04 21:01:26 +01:00

14 lines
264 B
Python

from dataclasses import dataclass
@dataclass(frozen=True)
class PowerState:
battery_percent: int | None
battery_seconds: int | None
on_battery: bool
no_battery: bool
charging: bool
charged: bool
plugged_in: bool
has_battery: bool