(self, attr_path)
Get attribute information from ``__dict__`` on the container.
Get attribute information from ``__dict__`` on the container.
Get attribute information from __dict__ on the container .
def _introspect_attribute_from_path(self, attr_path):
        """Get attribute information from ``__dict__`` on the container."""
        if not attr_path:
            return self

        parent = self._get_attribute_from_path(attr_path[:-1])
        parent_attrs = self._introspect_attributes(parent)
        attr_name = attr_path[-1]

        try:
            return parent_attrs[attr_name]
        except KeyError:
            raise AttributeError(
                f"type object {parent.__class__.__name__!r} "
                f"has no attribute {attr_name!r}"
            )
def _introspect_attribute_from_path ( self , attr_path ) : if not attr_path : return self parent = self . _get_attribute_from_path ( attr_path [ : - 1 ] ) parent_attrs = self . _introspect_attributes ( parent ) attr_name = attr_path [ - 1 ] try : return parent_attrs [ attr_name ] except KeyError : raise AttributeError ( f"type object {parent.__class__.__name__!r} " f"has no attribute {attr_name!r}" )