configuration: added 'as_dict()' as an instance function
This commit is contained in:
parent
f433f4c4b2
commit
15e5423984
@ -64,3 +64,6 @@ class Config():
|
||||
def to_file(self, path: str) -> None:
|
||||
with open(path, 'w') as f:
|
||||
yaml.dump(asdict(self), f)
|
||||
|
||||
def as_dict(self) -> dict[str, Any]:
|
||||
return asdict(self)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user