@@ -34,8 +34,34 @@ def __iter__(self):
3434
3535 @property
3636 def data (self ):
37+ """
38+ Return the internal `LuxtronikFieldsDictionary`.
39+ Please check its documentation.
40+ """
3741 return self ._data
3842
43+ def __getitem__ (self , def_name_or_idx ):
44+ """
45+ Array-style access to method `get`.
46+ Please check its documentation.
47+ """
48+ return self .get (def_name_or_idx )
49+
50+ def __setitem__ (self , def_name_or_idx , value ):
51+ """
52+ Array-style access to method `set`.
53+ Please check its documentation.
54+ """
55+ return self .set (def_name_or_idx , value )
56+
57+
58+ def __contains__ (self , def_field_name_or_idx ):
59+ """
60+ Forward the `LuxtronikFieldsDictionary.__contains__` method.
61+ Please check its documentation.
62+ """
63+ return def_field_name_or_idx in self ._data
64+
3965 def _name_lookup (self , name ):
4066 """
4167 Try to find the index using the given field name.
@@ -93,3 +119,7 @@ def get(self, target):
93119 """Get entry by id or name."""
94120 entry = self ._lookup (target )
95121 return entry
122+
123+ def set (self , target , value ):
124+ "TODO: Placeholder for future changes"
125+ pass
0 commit comments