Issues

Issue #1048 duplicate

Autodoc does not work well with inherited attributes.

Markus Unterwaditzer
created an issue

Maybe related, but not the original reason: https://github.com/mitsuhiko/flask/issues/480

Example code:

class Parent(object):
    someattr = 'FOO'
    '''The documentation for someattr. Using #: instead doesn't affect the outcome.'''

class Child(object):
    pass
.. autoclass:: mymodule.Child
    .. autoattribute:: someattr

Just shows "someattr = 'FOO'" in the docs, but not the docstring.

Comments (3)

  1. Log in to comment