class documentation

class Function(ApiObject):

View In Hierarchy

Represents a function definition. This can be in a #Module for plain functions or in a #Class for methods. The #decorations need to be introspected to understand if the function has a special purpose (e.g. is it a @property, @classmethod or @staticmethod?).
Class ​Semantic A list of well-known properties and behaviour that can be attributed to a function.
Class Variable args Undocumented
Class Variable decorations Undocumented
Class Variable modifiers Undocumented
Class Variable return​_type Undocumented
Class Variable semantic​_hints Undocumented

Inherited from ApiObject:

Method __post​_init__ Undocumented
Method parent.setter Undocumented
Method sync​_hierarchy No summary
Class Variable docstring Undocumented
Class Variable location Undocumented
Class Variable name Undocumented
Instance Variable parent Returns the parent of the #HasMembers. Note that if you make any modifications to the API object tree, you will need to call #sync_hierarchy() afterwards because adding to #Class.members or #Module.members does not automatically keep the #parent property in sync.
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.
Instance Variable ​_parent Undocumented
args: t.List[Argument] =

Undocumented

decorations: t.Optional[t.List[Decoration]] =

Undocumented

modifiers: t.Optional[t.List[str]] =

Undocumented

return_type: t.Optional[str] =

Undocumented

semantic_hints: t.List[Semantic] =

Undocumented