class documentation

Base class for API objects that can have members, e.g. #Class and #Module.

Method __init__ Undocumented
Method sync_hierarchy Synchronize the hierarchy of this API object and all of it's children. This should be called when the #HasMembers.members are updated to ensure that all child objects reference the right #parent. Loaders are expected to return #ApiObject#s in a fully synchronized state such that the user does not have to call this method unless they are doing modifications to the tree.
Instance Variable members The members of the API object.
Instance Variable parent The parent of the API object.

Inherited from ApiObject:

Instance Variable docstring The documentation string of the API object.
Instance Variable location The location of the API object, i.e. where it is sourced from/defined in the code.
Instance Variable name The name of the entity. This is usually relative to the respective parent of the entity, as opposed to it's fully qualified name/absolute name. However, that is more of a recommendation than rule. For example the #docspec_python loader by default returns #Module objects with their full module name (and does not create a module hierarchy).
Property path Returns a list of all of this API object's parents, from top to bottom. The list includes self as the last item.

Inherited from _HasInitAttribsMethod (via ApiObject):

Method _init_attribs A method to define extra attributes that will be set after initialization.
def __init__(self, *args, members, **kwargs): (source)

Undocumented

Parameters
*args:t.AnyUndocumented
members:t.List[ApiObject]Undocumented
**kwargs:t.AnyUndocumented
def sync_hierarchy(self, parent=None): (source)

Synchronize the hierarchy of this API object and all of it's children. This should be called when the #HasMembers.members are updated to ensure that all child objects reference the right #parent. Loaders are expected to return #ApiObject#s in a fully synchronized state such that the user does not have to call this method unless they are doing modifications to the tree.

Parameters
parent:t.Optional[HasMembers]Undocumented

The members of the API object.

parent = (source)

The parent of the API object.