class documentation

class PyMethod(PyObject):

Known subclasses: sphinx.domains.python.PyClassMethod, sphinx.domains.python.PyDecoratorMethod, sphinx.domains.python.PyStaticMethod

View In Hierarchy

Description of a method.
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 add​_target​_and​_index Undocumented
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 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