From 453a1efefcd5088b34331cad3df91a0b906d0254 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 11 Nov 2024 01:12:29 +0800 Subject: HALF WORK: 2024.11.12 --- tools/cru-py/cru/property.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/cru-py/cru/property.py (limited to 'tools/cru-py/cru/property.py') 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 -- cgit v1.2.3