Make AutoDirective as a simple object (not directive)

This commit is contained in:
Takeshi KOMIYA 2017-12-17 01:39:15 +09:00
parent 1ab0d96a5f
commit 9b18e83e32

View File

@ -1475,11 +1475,11 @@ class InstanceAttributeDocumenter(AttributeDocumenter):
AttributeDocumenter.add_content(self, more_content, no_docstring=True) AttributeDocumenter.add_content(self, more_content, no_docstring=True)
class AutoDirective(Directive): class AutoDirective(object):
""" """
The AutoDirective class is used for all autodoc directives. It dispatches A registry of Documenters and attrgetters.
most of the work to one of the Documenters, which it selects through its
*_registry* dictionary. The *_registry* attribute is used to store registered Documenters.
The *_special_attrgetters* attribute is used to customize ``getattr()`` The *_special_attrgetters* attribute is used to customize ``getattr()``
calls that the Documenters make; its entries are of the form ``type: calls that the Documenters make; its entries are of the form ``type: