fix: add get remove properties

This commit is contained in:
egarette@silique.fr 2025-02-17 15:45:27 +01:00
parent 9c7fb1d505
commit 04aa9444a3

View file

@ -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,