![](/img/trans.png)
[英]Where can I find more information about new syntax supported in Google style docstrings with the napoleon extension of sphinx-doc?
[英]Sphinx Napoleon Extension: document multiple return arguments with Google Style docstrings
这个问题与另一个有关。 建议和接受的解决方案是:
Returns:
(tuple): tuple containing:
arg1: First Argument
arg2: Second Argument
这个解决方案不起作用,至少对我来说是这样。 带有arg1
和arg2
描述的缩进子块不被解析。
我应该如何使用sphinx
、 sphinx.ext.napoleon
和 Google Style docstring 管理多个回报?
这是一个已知问题, napoleon
的当前维护者不会修复。 尽管如链接中所述,他们欢迎提供修复的拉取请求。
尝试在文档字符串中使用换行符\\n
:
Returns:
tuple: tuple containing:
servers (list): servers to use \n
msg (str): logging message string
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.