class documentation

class Field:

Known subclasses: sphinx.domains.python.PyField, sphinx.util.docfields.GroupedField

View In Hierarchy

A doc field that is never grouped. It can have an argument or not, the argument can be linked using a specified rolename. Field should be used for doc fields that usually don't occur more than once.

The body can be linked using a specified bodyrolename if the content is just a single inline or text node.

Example:

:returns: description of the return value
:rtype: description of the return type
Method __init__ Undocumented
Method make​_entry Undocumented
Method make​_field Undocumented
Method make​_xref Undocumented
Method make​_xrefs Undocumented
Class Variable is​_grouped Undocumented
Class Variable is​_typed Undocumented
Instance Variable bodyrolename Undocumented
Instance Variable has​_arg Undocumented
Instance Variable label Undocumented
Instance Variable name Undocumented
Instance Variable names Undocumented
Instance Variable rolename Undocumented
def __init__(self, name, names=(), label=None, has_arg=True, rolename=None, bodyrolename=None):

Undocumented

Parameters
name:strUndocumented
names:Tuple[str, ...]Undocumented
label:strUndocumented
has​_arg:boolUndocumented
rolename:strUndocumented
bodyrolename:strUndocumented
def make_entry(self, fieldarg, content):

Undocumented

Parameters
fieldarg:strUndocumented
content:List[Node]Undocumented
Returns
Tuple[str, List[Node]]Undocumented
def make_field(self, types, domain, item, env=None, inliner=None, location=None):

Undocumented

Parameters
types:Dict[str, List[Node]]Undocumented
domain:strUndocumented
item:TupleUndocumented
env:BuildEnvironmentUndocumented
inliner:InlinerUndocumented
location:NodeUndocumented
Returns
nodes.fieldUndocumented
def make_xref(self, rolename, domain, target, innernode=addnodes.literal_emphasis, contnode=None, env=None, inliner=None, location=None):

Undocumented

Parameters
rolename:strUndocumented
domain:strUndocumented
target:strUndocumented
innernode:Type[TextlikeNode]Undocumented
contnode:NodeUndocumented
env:BuildEnvironmentUndocumented
inliner:InlinerUndocumented
location:NodeUndocumented
Returns
NodeUndocumented
def make_xrefs(self, rolename, domain, target, innernode=addnodes.literal_emphasis, contnode=None, env=None, inliner=None, location=None):

Undocumented

Parameters
rolename:strUndocumented
domain:strUndocumented
target:strUndocumented
innernode:Type[TextlikeNode]Undocumented
contnode:NodeUndocumented
env:BuildEnvironmentUndocumented
inliner:InlinerUndocumented
location:NodeUndocumented
Returns
List[Node]Undocumented
is_grouped: bool =

Undocumented

is_typed: bool =

Undocumented

bodyrolename =

Undocumented

has_arg =

Undocumented

label =

Undocumented

name =

Undocumented

names =

Undocumented

rolename =

Undocumented