fix: add get remove properties
This commit is contained in:
parent
9c7fb1d505
commit
04aa9444a3
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,12 @@ class Property:
|
|||
) -> None:
|
||||
self._properties.setdefault(path, {})[property_] = value
|
||||
|
||||
def get(self, path: str) -> None:
|
||||
return self._properties.setdefault(path, {})
|
||||
|
||||
def remove(self, path: str, property_: str) -> None:
|
||||
del self._properties[path][property_]
|
||||
|
||||
def __getitem__(
|
||||
self,
|
||||
path: str,
|
||||
|
|
Loading…
Reference in a new issue