TEMP: WIP: add repo_config

TEMP cause it spams a bunch of prints in dataclass handling
This commit is contained in:
InsanePrawn 2023-03-27 09:05:30 +02:00
parent 72f4d4948e
commit ff1c31e157
10 changed files with 493 additions and 130 deletions

View file

@ -5,7 +5,7 @@ import copy
import logging
import os
from typing import Mapping
from typing import Any, Mapping, Optional
from config.state import config
from constants import Arch
@ -26,7 +26,7 @@ class DeviceInfo(DataClass):
flash_method: str
@classmethod
def transform(cls, values: Mapping[str, str], validate: bool = True, allow_extra: bool = True):
def transform(cls, values: Mapping[str, str], validate: bool = True, allow_extra: bool = True, type_hints: Optional[dict[str, Any]] = None):
return super().transform(values, validate=validate, allow_extra=allow_extra)