当我使用 Sphinx autodoc 来记录一个类时,属性的值总是被报告,(正如它所说的应该在这里,在 #437 下)但总是作为“= None”
Attribute = None
Some Documentation
我把它包括在内
.. autoclass:: core.SomeClass
:members:
我的代码看起来像
class SomeClass(object):
def __init__(self):
self.attribute = "value" #: Some Documentation
有没有办法让“= None”报告真正的价值,或者让它消失?