UI: init update machine

This commit is contained in:
Johannes Kirschbauer
2024-08-15 15:04:17 +02:00
parent 4940767fcc
commit 5acd9aabf3
4 changed files with 102 additions and 47 deletions

View File

@@ -249,6 +249,6 @@ def from_dict(t: type[G], data: dict[str, Any] | Any, path: list[str] = []) -> G
if is_dataclass(t):
if not isinstance(data, dict):
raise ClanError(f"{data} is not a dict. Expected {t}")
return construct_dataclass(t, data, path)
return construct_dataclass(t, data, path) # type: ignore
else:
return construct_value(t, data, path)