class documentation

class UninitializedInstanceAttributeMixin(DataDocumenterMixinBase): (source)

Known subclasses: sphinx.ext.autodoc.AttributeDocumenter

View In Hierarchy

Mixin for AttributeDocumenter to provide the feature for supporting uninitialized instance attributes (PEP-526 styled, annotation only attributes). Example: class Foo: attr: int #: This is a target of this mix-in.

Method get_doc Undocumented
Method import_object Check the exisitence of uninitialized instance attribute when failed to import the attribute.
Method is_uninitialized_instance_attribute Check the subject is an annotation only attribute.
Method should_suppress_value_header Check :value: header should be suppressed.

Inherited from DataDocumenterMixinBase:

Method should_suppress_directive_header Check directive header should be suppressed.
Method update_content Update docstring, for example with TypeVar variance.
Class Variable config Undocumented
Class Variable env Undocumented
Class Variable modname Undocumented
Class Variable object Undocumented
Class Variable objpath Undocumented
Class Variable parent Undocumented
def get_doc(self): (source)

Undocumented

Returns
list[list[str]]|NoneUndocumented
def import_object(self, raiseerror=False): (source)

Check the exisitence of uninitialized instance attribute when failed to import the attribute.

Parameters
raiseerror:boolUndocumented
Returns
boolUndocumented
def is_uninitialized_instance_attribute(self, parent): (source)

Check the subject is an annotation only attribute.

Parameters
parent:AnyUndocumented
Returns
boolUndocumented
def should_suppress_value_header(self): (source)

Check :value: header should be suppressed.

Returns
boolUndocumented