Wallman/wallman/wallman_classes.py

29 lines
592 B
Python
Raw Normal View History

from typing import TypedDict, List, Dict
"""
This is where library classes, like the config error
And other utility things like TypedDicts for better
linting and type checking go. I should also consider
to move some other import here
"""
2025-02-27 16:28:32 +00:00
class ConfigError(Exception):
pass
2025-02-27 16:28:32 +00:00
class ConfigGeneral(TypedDict):
enable_wallpaper_sets: bool
used_sets: List[str]
wallpapers_per_set: int
notify: bool
fallback_wallpaper: str
log_level: str
systray: bool
behavior: str
2025-02-27 16:28:32 +00:00
class ConfigFile(TypedDict):
general: ConfigGeneral
changing_times: Dict[str, str]