getitem_property
Attribute - > dict key descriptor.
Attributes
| Attribute | Type | Description |
|---|---|---|
| key | string | The final key in the keypath used to access or set the value in the target dictionary-like object. |
| path | list of strings or null | A list of intermediate keys representing the nested path to the dictionary containing the target attribute, or None if the attribute is at the root level. |
| doc | string or null | The documentation string for the property, which can be optionally provided during initialization. |
Constructor
Signature
def getitem_property(
keypath: str,
doc: str = None
)
Parameters
| Name | Type | Description |
|---|---|---|
| keypath | str | A string representing the path to the dictionary key, using dots to separate nested levels. |
| doc | str = None | An optional documentation string for the descriptor. |