Sphinx Napoleon Extension:使用Google Style docstrings记录多个返回参数

DiT*_*TiD 7 python google-style-guide python-sphinx

这个问题与另一个问题有关.建议和接受的解决方案是:

Returns:
       (tuple): tuple containing:                        
                    arg1: First Argument
                    arg2: Second Argument
Run Code Online (Sandbox Code Playgroud)

这个解决方案不起作用,至少对我而言.不解析带有arg1arg2描述的缩进子块.

我应如何管理多的回报sphinx,sphinx.ext.napoleon和谷歌文档字符串风格?

jai*_*ash 0

这是一个已知问题,sphinx 项目(当前的维护者)不会解决napoleon该问题。正如链接中提到的,他们不认为多行返回是谷歌规范的一部分,也不会解决这个问题。