当我使用Sphinx autodoc来记录一个类时,属性的值总是被报告(因为它说它应该在#437下应该是here)但始终为“= None”属性的狮身人面像值报告为无
Attribute = None
Some Documentation
我包括它像
.. autoclass:: core.SomeClass
:members:
而且我的代码看起来像
class SomeClass(object):
def __init__(self):
self.attribute = "value" #: Some Documentation
有没有办法让“=无”报告真正的价值,还是让它消失?
你在哪里看到''= None''进行了讨论? – jterrace 2012-02-13 02:52:34
这里,例如:http://readthedocs.org/docs/domination-game/en/latest/games.html#domination.core.GameStats。它发生在我使用'self.attribute = ...'和'autoclass :: ..:members'组合的任何地方:' – noio 2012-02-14 09:46:23