dictscheme: rename from dataclass as it's confusing with builtin dataclasses
This commit is contained in:
parent
b84d2202db
commit
acee95a003
9 changed files with 34 additions and 34 deletions
|
@ -5,7 +5,7 @@ from typing import Optional
|
|||
|
||||
from config.state import config
|
||||
from constants import Arch, ARCHES
|
||||
from dataclass import DataClass
|
||||
from dictscheme import DictScheme
|
||||
from distro.distro import get_kupfer_local
|
||||
from distro.package import LocalPackage
|
||||
from packages.pkgbuild import Pkgbuild, _pkgbuilds_cache, discover_pkgbuilds, get_pkgbuild_by_path, init_pkgbuilds
|
||||
|
@ -22,7 +22,7 @@ DEVICE_DEPRECATIONS = {
|
|||
}
|
||||
|
||||
|
||||
class DeviceSummary(DataClass):
|
||||
class DeviceSummary(DictScheme):
|
||||
name: str
|
||||
description: str
|
||||
arch: str
|
||||
|
@ -43,7 +43,7 @@ class DeviceSummary(DataClass):
|
|||
return separator.join([f"{color_str(name, bold=True, use_colors=colors)}: {value}" for name, value in fields.items()])
|
||||
|
||||
|
||||
class Device(DataClass):
|
||||
class Device(DictScheme):
|
||||
name: str
|
||||
arch: Arch
|
||||
package: Pkgbuild
|
||||
|
|
|
@ -9,14 +9,14 @@ from typing import Any, Mapping, Optional
|
|||
|
||||
from config.state import config
|
||||
from constants import Arch
|
||||
from dataclass import DataClass
|
||||
from dictscheme import DictScheme
|
||||
|
||||
PMOS_ARCHES_OVERRIDES: dict[str, Arch] = {
|
||||
"armv7": 'armv7h',
|
||||
}
|
||||
|
||||
|
||||
class DeviceInfo(DataClass):
|
||||
class DeviceInfo(DictScheme):
|
||||
arch: Arch
|
||||
name: str
|
||||
manufacturer: str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue