update v0.1.4.5

This commit is contained in:
HibiKier
2022-04-04 20:33:37 +08:00
parent b5ce4fab31
commit 0f59895c3b
22 changed files with 714 additions and 91 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ from typing import Union, Optional
from pathlib import Path
from ruamel.yaml import YAML
import ujson as json
import copy
yaml = YAML(typ="safe")
@@ -47,7 +48,7 @@ class StaticData:
del self._data[key]
def get_data(self) -> dict:
return self._data
return copy.deepcopy(self._data)
def save(self, path: Union[str, Path] = None):
path = path if path else self.file