diff options
author | crupest <crupest@outlook.com> | 2024-11-11 01:12:29 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2024-12-18 18:31:27 +0800 |
commit | 95da3ade5bfa6ef39923cd3fc2a551ad983c1537 (patch) | |
tree | d2bf4e40bf625c75768d5ccda2ca49dbaba97a9a /tools/cru-py/cru/property.py | |
parent | eff33fcbc8e78b1cd15332c229cd39ae9befbe5e (diff) | |
download | crupest-95da3ade5bfa6ef39923cd3fc2a551ad983c1537.tar.gz crupest-95da3ade5bfa6ef39923cd3fc2a551ad983c1537.tar.bz2 crupest-95da3ade5bfa6ef39923cd3fc2a551ad983c1537.zip |
HALF WORK: 2024.11.12
Diffstat (limited to 'tools/cru-py/cru/property.py')
-rw-r--r-- | tools/cru-py/cru/property.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/cru-py/cru/property.py b/tools/cru-py/cru/property.py new file mode 100644 index 0000000..9549731 --- /dev/null +++ b/tools/cru-py/cru/property.py @@ -0,0 +1,24 @@ +import json +from typing import Any + + +class PropertyItem: + def __init__(self, value: Any): + self._value = value + + @property + def value(self) -> Any: + return self._value + + @value.setter + def value(self, value: Any): + self._value = value + + +class PropertyTreeSection: + def __init__(self, data: dict[str, Any] | None = None) -> None: + self._data = data or {} + +class PropertyTree: + def __init__(self, data: dict[str, Any] | None = None) -> None: + self._data = data or {}
\ No newline at end of file |