Issues

Issue #952 new

Failed to correctly document subclass or `property`.

Anonymous created an issue

Consider the class:

{{{

!python

class EventProperty(property): """ Used to declare events on the class ... """

def fire(self, *args, **kwargs):
    """ Fire the event.  """
    pass

}}} and the associated rst file:

{{{

!python


pkg.autodocbug


.. automodule:: pkg.autodocbug :members: }}}

The resulting (HTML) documentation seems to think EventProperty is a function and does not document its members. Now, if I change the subclass of EventProperty as follows:

{{{

!python

class EventProperty(object): """ Used to declare events on the class ... """

def fire(self, *args, **kwargs):
    """ Fire the event.  """
    pass

}}}

then the documentation is as expected.

Comments (2)

  1. Log in to comment