cdw*_*son 6 python documentation abc python-sphinx
以下两个属性定义在Sphinx autodoc html输出中显示完全相同:
@property
def concrete(self):
"""This is the concrete docstring"""
pass
@abstractproperty
def abstract(self):
"""This is the abstract docstring"""
pass
Run Code Online (Sandbox Code Playgroud)
Sphinx是否有办法用某种标识符注释抽象方法?我希望在我的文档中可以明显看出我的ABC成员需要实现哪些,以及一旦定义了所需的,就会获得mixin免费赠品.
| 归档时间: |
|
| 查看次数: |
606 次 |
| 最近记录: |