class documentation

class PyFunction(PyObject):

Known subclasses: sphinx.domains.python.PyDecoratorFunction

View In Hierarchy

Description of a function.
Method add​_target​_and​_index Undocumented
Method get​_index​_text Return the text for the index entry of the object.
Method get​_signature​_prefix May return a prefix to put before the object name in the signature.
Method needs​_arglist May return true if an empty argument list is to be generated even if the document contains none.
Class Variable option​_spec Undocumented

Inherited from PyObject:

Method after​_content Handle object de-nesting after content
Method before​_content Handle object nesting before content
Method handle​_signature Transform a Python signature into RST nodes.
Class Variable allow​_nesting Class is an object that allows for nested namespaces
Class Variable doc​_field​_types Undocumented
def add_target_and_index(self, name_cls, sig, signode):

Undocumented

Parameters
name​_cls:Tuple[str, str]Undocumented
sig:strUndocumented
signode:desc_signatureUndocumented
def get_index_text(self, modname, name_cls):
Return the text for the index entry of the object.
Parameters
modname:strUndocumented
name​_cls:Tuple[str, str]Undocumented
Returns
strUndocumented
def get_signature_prefix(self, sig):
May return a prefix to put before the object name in the signature.
Parameters
sig:strUndocumented
Returns
List[nodes.Node]Undocumented
def needs_arglist(self):
May return true if an empty argument list is to be generated even if the document contains none.
Returns
boolUndocumented
option_spec: OptionSpec =