在Sphinx中,使用sphinx.ext.autosummary时,如何排除基类成员?
我正在使用狮身人面像记录代码库DocString;在Python。我有这样的代码 -
class foo(np.ndarray):
def foo_func():
pass
class bar(foo):
def bar_func():
pass
当使用sphinx.ext.autosummary记录代码库时,在 bar 中,我如何防止 foo 显示出遗传的成员?
I am using Sphinx to document a code base docString; in python. I have code like this -
class foo(np.ndarray):
def foo_func():
pass
class bar(foo):
def bar_func():
pass
When using sphinx.ext.autosummary to document the code base, in bar, how do I prevent inherited members from foo from showing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论