Skip to content

Added a method to get a nested attribute on a dataclass

Luis Aleixo requested to merge feature/nested_getattr into master

Added a method to get a nested attribute on a dataclass.

It is much like getattr, except it supports nested attribute definitions. For example:

    >>> nested_getattr(obj, 'attr1.sub_attr2.sub_sub_attr3')

Merge request reports