Debian Codegraph @

docs/lib/cloud_sptheme.ext.autoattribute_search_bases.rst

raw
1 ===================================================
2 :mod:`cloud_sptheme.ext.autoattribute_search_bases`
3 ===================================================
4
5 .. module:: cloud_sptheme.ext.autoattribute_search_bases
6 :synopsis: make ``autoattribute`` search for docstrings in parent classes
7
8 .. versionadded:: 1.7
9
10 Overview
11 ========
12
13 Currently, :mod:`sphinx.ext.autodoc`'s ``autoattribute`` only checks
14 the current class for an attribute docstring. This extension patches Sphinx
15 so that if one isn't found, autodoc will then search through the parent classes,
16 in case the attribute is defined there, but is being documented in the subclass.