【发布时间】:2017-10-10 06:32:23
【问题描述】:
JetBrains 的文档说,创建 reStructuredText comments with type-hinting 有两种格式:
:param param_type param_name: parameter description (type description is on the same line as the parameter description).
:type param_name: param_type (type description is on a separate line)
曾经有一种方法,您可以如何选择生成 cmets 的一种或另一种方法,但我在 PyCharm 2017.1.2 中找不到该设置了。有什么想法,这个设置去哪儿了?
我希望在同一行中包含类型描述 param_type,但标准方式将其放在下一行。
【问题讨论】:
-
有没有办法把类型和参数放在同一行?我也在找。
标签: python pycharm restructuredtext type-hinting docstring