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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue