class documentation

class RuntimeInstanceAttributeMixin(DataDocumenterMixinBase):

Known subclasses: sphinx.ext.autodoc.AttributeDocumenter

View In Hierarchy

Mixin for AttributeDocumenter to provide the feature for supporting runtime instance attributes (that are defined in __init__() methods with doc-comments).

Example:

class Foo:
def __init__(self):
self.attr = None #: This is a target of this mix-in.
Constant RUNTIME​_INSTANCE​_ATTRIBUTE Undocumented
Method get​_doc Undocumented
Method import​_object Check the existence of runtime instance attribute after failing to import the attribute.
Method is​_runtime​_instance​_attribute Check the subject is an attribute defined in __init__().
Method is​_runtime​_instance​_attribute​_not​_commented Check the subject is an attribute defined in __init__() without comment.
Method should​_suppress​_value​_header Check :value: header should be suppressed.
Instance Variable object Undocumented
Instance Variable parent Undocumented

Inherited from DataDocumenterMixinBase:

Method should​_suppress​_directive​_header Check directive header should be suppressed.
Method update​_content Update docstring for the NewType object.
Class Variable config Undocumented
Class Variable env Undocumented
Class Variable modname Undocumented
Class Variable objpath Undocumented
RUNTIME_INSTANCE_ATTRIBUTE =

Undocumented

Value
object()
def get_doc(self, ignore=None):

Undocumented

Parameters
ignore:intUndocumented
Returns
Optional[List[List[str]]]Undocumented
def import_object(self, raiseerror=False):
Check the existence of runtime instance attribute after failing to import the attribute.
Parameters
raiseerror:boolUndocumented
Returns
boolUndocumented
def is_runtime_instance_attribute(self, parent):
Check the subject is an attribute defined in __init__().
Parameters
parent:AnyUndocumented
Returns
boolUndocumented
def is_runtime_instance_attribute_not_commented(self, parent):
Check the subject is an attribute defined in __init__() without comment.
Parameters
parent:AnyUndocumented
Returns
boolUndocumented
def should_suppress_value_header(self):
Check :value: header should be suppressed.
Returns
boolUndocumented