feat(typing): More types, cleaner structure
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
from typing import Optional, TypedDict
|
||||
|
||||
|
||||
class ArchMgrPkgConfig(TypedDict):
|
||||
individual: list[str]
|
||||
bundles: list[ArchMgrBundleConfig]
|
||||
repos: ArchMgrRepoSettings
|
||||
|
||||
|
||||
class ArchMgrReposConfig(TypedDict):
|
||||
enabled_repos: list[ArchMgrRepoSettings]
|
||||
reflector: ArchMgrReflectorConfig
|
||||
|
||||
|
||||
class ArchMgrReflectorConfig(TypedDict):
|
||||
enabled: bool
|
||||
interval: Optional[int]
|
||||
countries: Optional[list[str]]
|
||||
count: Optional[int]
|
||||
|
||||
|
||||
class ArchMgrBundleConfig(TypedDict):
|
||||
name: str
|
||||
ignored_pkgs: Optional[list[str]]
|
||||
|
||||
|
||||
class ArchMgrRepoSettings(TypedDict):
|
||||
name: str
|
||||
setup_cmds: Optional[list[str]]
|
||||
mirrors: ArchMgrRepoMirrors
|
||||
|
||||
|
||||
class ArchMgrRepoMirrors(TypedDict):
|
||||
use_default: bool
|
||||
extra_mirrors: Optional[list[str]]
|
||||
Reference in New Issue
Block a user