aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/property.py
blob: 954973195eb47c0897421133d041375f36ebc86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 {}