class documentation

class FunctionDocumenter(DocstringSignatureMixin, ModuleLevelDocumenter):

Known subclasses: sphinx.ext.autodoc.DecoratorDocumenter, sphinx.ext.autodoc.deprecated.SingledispatchFunctionDocumenter

View In Hierarchy

Specialized Documenter subclass for functions.
Class Method can​_document​_member Called to see if a member can be documented by this Documenter.
Method add​_directive​_header Add the directive header and options to the generated content.
Method annotate​_to​_first​_argument Annotate type hint to the first argument of function if needed.
Method document​_members Generate reST for member documentation.
Method format​_args Format the argument signature of self.object.
Method format​_signature Format the signature (arguments and return annotation) of the object.
Method merge​_default​_value Merge default values of actual implementation to the overload variants.
Class Variable member​_order Undocumented
Class Variable objtype Undocumented

Inherited from DocstringSignatureMixin:

Method ​_find​_signature Undocumented
Method get​_doc Undocumented
Instance Variable ​_new​_docstrings Undocumented
Instance Variable ​_signatures Undocumented
Instance Variable args Undocumented
Instance Variable retann Undocumented

Inherited from ModuleLevelDocumenter:

Method resolve​_name Resolve the module and name of the object to document given by the arguments and the current module/class.

Inherited from Documenter (via ModuleLevelDocumenter):

Method __init__ Undocumented
Method ​_call​_format​_args Undocumented
Method add​_content Add content from docstrings, attribute documentation and user.
Method add​_line Append one line of generated reST to the output.
Method check​_module Check if self.object is really defined in the module given by self.modname.
Method filter​_members Filter the given member list.
Method format​_name Format the name of self.object.
Method generate Generate reST for the object given by self.name, and possibly for its members.
Method get​_attr getattr() override for types such as Zope interfaces.
Method get​_doc Decode and return lines of the docstring(s) for the object.
Method get​_object​_members Return (members_check_module, members) where members is a list of (membername, member) pairs of the members of self.object.
Method get​_real​_modname Get the real module name of an object to document.
Method get​_sourcename Undocumented
Method import​_object Import the object given by self.modname and self.objpath and set it as self.object.
Method parse​_name Determine what module to import and what attribute to document.
Method process​_doc Let the user process the docstrings before adding them.
Method sort​_members Sort the given member list.
Class Variable content​_indent Undocumented
Class Variable option​_spec Undocumented
Class Variable priority Undocumented
Class Variable titles​_allowed Undocumented
Instance Variable analyzer Undocumented
Instance Variable args Undocumented
Instance Variable config Undocumented
Instance Variable directive Undocumented
Instance Variable env Undocumented
Instance Variable fullname Undocumented
Instance Variable indent Undocumented
Instance Variable modname Undocumented
Instance Variable module Undocumented
Instance Variable name Undocumented
Instance Variable object Undocumented
Instance Variable object​_name Undocumented
Instance Variable objpath Undocumented
Instance Variable options Undocumented
Instance Variable parent Undocumented
Instance Variable real​_modname Undocumented
Instance Variable retann Undocumented
Property documenters Returns registered Documenter classes
@classmethod
def can_document_member(cls, member, membername, isattr, parent):
Called to see if a member can be documented by this Documenter.
Parameters
member:AnyUndocumented
membername:strUndocumented
isattr:boolUndocumented
parent:AnyUndocumented
Returns
boolUndocumented
def add_directive_header(self, sig):
Add the directive header and options to the generated content.
Parameters
sig:strUndocumented
def annotate_to_first_argument(self, func, typ):
Annotate type hint to the first argument of function if needed.
Parameters
func:CallableUndocumented
typ:TypeUndocumented
Returns
Optional[Callable]Undocumented
def document_members(self, all_members=False):

Generate reST for member documentation.

If all_members is True, document all members, else those given by self.options.members.

Parameters
all​_members:boolUndocumented
def format_args(self, **kwargs):

Format the argument signature of self.object.

Should return None if the object does not have a signature.

Parameters
**kwargs:AnyUndocumented
Returns
strUndocumented
def format_signature(self, **kwargs):

Format the signature (arguments and return annotation) of the object.

Let the user process it via the autodoc-process-signature event.

Parameters
**kwargs:AnyUndocumented
Returns
strUndocumented
def merge_default_value(self, actual, overload):
Merge default values of actual implementation to the overload variants.
Parameters
actual:SignatureUndocumented
overload:SignatureUndocumented
Returns
SignatureUndocumented
member_order: int =
objtype: str =