Closed maeddlae closed 5 years ago
Good point, yes, that is at the moment not working. The only workaround is to create a class_variable and override it in the corresponding instance
class Example():
"""
class documentation
"""
class_variable = 12 #: This is a classvariable
instance_variable = None #: This is an instance variable and will be overwritten
def __init__(self):
"""
constructor doc
"""
self.instance_variable = 34 #: This is an instance variable
But you are right, since autodoc is able to put the instance_variable
here, autodocsumm
should as well
Do you plan to fix this in the near future? I am asking because autodocsumm perfectly fits my needs. But showing the attributes is critical for me..
Yes, I will work on it before Sunday. I don't think it should be too difficult.
Great, thanks a lot. Then I will wait for your update:-)
Description Instance variable is not shown correctly:
Example
Generated output:
Setup: