class documentation

Represents a class definition.

Method __init__ Undocumented
Instance Variable bases The list of base classes as code strings.
Instance Variable decorations A list of decorations used in the class definition.
Instance Variable metaclass The metaclass used in the class definition as a code string.
Instance Variable modifiers A list of language-specific modifiers that were used to declare this #Variable object.
Instance Variable semantic_hints A list of hints that describe the object.

Inherited from HasMembers:

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 (via HasMembers):

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 HasMembers, ApiObject):

Method _init_attribs A method to define extra attributes that will be set after initialization.
def __init__(self, *args, metaclass, bases, decorations, modifiers=None, semantic_hints=None, **kwargs): (source)

Undocumented

Parameters
*args:t.AnyUndocumented
metaclass:t.Optional[str]Undocumented
bases:t.Optional[t.List[str]]Undocumented
decorations:t.Optional[t.List[Decoration]]Undocumented
modifiers:t.Optional[t.List[str]]Undocumented
semantic_hints:t.Optional[t.List[ClassSemantic]]Undocumented
**kwargs:t.AnyUndocumented

The list of base classes as code strings.

A list of decorations used in the class definition.

metaclass: t.Optional[str] = (source)

The metaclass used in the class definition as a code string.

modifiers: t.List[str] = (source)

A list of language-specific modifiers that were used to declare this #Variable object.

semantic_hints: t.List[ClassSemantic] = (source)

A list of hints that describe the object.