clan-app: Fix mypy lints and add GenericFnRuntime

This commit is contained in:
Qubasa
2024-07-15 19:48:20 +02:00
parent 660ac92c29
commit 77dc90d3b4
8 changed files with 83 additions and 85 deletions

View File

@@ -1,4 +1,3 @@
import dataclasses
import logging
from dataclasses import fields, is_dataclass
@@ -90,4 +89,4 @@ def from_dict(t: type, data: dict[str, Any] | None) -> Any:
except (TypeError, ValueError) as e:
print(f"Failed to instantiate {t.__name__}: {e}")
return None
return None