使用下面的源代码,我想为函数中定义的类foo生成文档。你知道吗
# module named rubbish.py
def factory():
class foo:
def bar(self):
'''bar
'''
pass
相应的rst文件看起来
rubbish module
==============
.. automodule:: rubbish
:members:
:undoc-members:
:show-inheritance:
并且不会生成类文档。生成的html只显示factory()。你知道吗
是否也有任何指令来记录这个类?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐