【发布时间】:2018-07-30 09:47:43
【问题描述】:
我正在与使用 vscode 的人合作开展一个项目。我们编写 Python 代码。 我让他们为他们的函数生成文档字符串,他们使用了来自 vscode 的 Autodocstring。这是他们提出的一个文档字符串:
"""
Subclass ObjectCAD renderToFile method to render the scad file
in renders_dir
Arguments:
file_path {str} -- the destination path for the scad file
Returns:
None
"""
它应该是谷歌风格的文档字符串。
当我使用 Sphinx 生成 html 文档时,我得到了以下信息:
虽然我应该得到类似的东西:
我是否缺少 sphinx 配置中的选项?还是 Autodocstring 坏了?
【问题讨论】:
标签: python visual-studio-code docstring