All other types (classes, properties, methods, etc) work fine but when autosummary gets to instance attributes it raises "WARNING: failed to import AClass.a
" error. The strange thing is the table is drawn with link to the autodoc code docs below but doc summary column is empty.
Does anyone have this working, or have any ideas what might be wrong?
Shows the table with link but no docs:
Shows that autodoc is working (the link above wouldn't be possible without it):
I've also tried other forms of documentation, such as the #: ...
style, etc. All the same result. Again, everything else in the same module works. I DO see docs in autosummary tables for methods etc.
Example class:
class AClass(object):
def __init__(self):
self.a = 10
"""
An example instance attribute
:type: int
"""
Example ReST:
.. autosummary::
AClass.a
I'm using Sphinx 1.2.3