class UninitializedInstanceAttributeMixin(DataDocumenterMixinBase):
Known subclasses: sphinx.ext.autodoc.AttributeDocumenter
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. |
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 |
sphinx.ext.autodoc.AttributeDocumenter
Undocumented
Parameters | |
ignore:int | Undocumented |
Returns | |
Optional[ | Undocumented |
sphinx.ext.autodoc.AttributeDocumenter
Parameters | |
raiseerror:bool | Undocumented |
Returns | |
bool | Undocumented |
Parameters | |
parent:Any | Undocumented |
Returns | |
bool | Undocumented |
sphinx.ext.autodoc.AttributeDocumenter
Returns | |
bool | Undocumented |