ChatMasterMind Application Refactor and Enhancement #8
@ -63,4 +63,7 @@ class Config():
|
||||
|
||||
def to_file(self, path: str) -> None:
|
||||
with open(path, 'w') as f:
|
||||
yaml.dump(asdict(self), f)
|
||||
yaml.dump(asdict(self), f, sort_keys=False)
|
||||
|
||||
def as_dict(self) -> dict[str, Any]:
|
||||
return asdict(self)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user