aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/property.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-11 01:12:29 +0800
committerYuqian Yang <crupest@crupest.life>2024-12-18 18:31:27 +0800
commit453a1efefcd5088b34331cad3df91a0b906d0254 (patch)
treed2bf4e40bf625c75768d5ccda2ca49dbaba97a9a /tools/cru-py/cru/property.py
parent3d2ed6821112179743083364aac705c6e78c08b6 (diff)
downloadcrupest-453a1efefcd5088b34331cad3df91a0b906d0254.tar.gz
crupest-453a1efefcd5088b34331cad3df91a0b906d0254.tar.bz2
crupest-453a1efefcd5088b34331cad3df91a0b906d0254.zip
HALF WORK: 2024.11.12
Diffstat (limited to 'tools/cru-py/cru/property.py')
-rw-r--r--tools/cru-py/cru/property.py24
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