如何在文档字符串中添加“Raises”的项目符号列表?

woo*_*ock 5 python docstring bulletedlist python-sphinx

我不知道如何为Raises. 见下文。有可能吗?我得到的是一个要点RuntimeError(同样适用于ValueError)。\n例如:

\n
   Raises:      \xe2\x80\xa2 RuntimeError -\n                     \xe2\x97\xa6 case1: when x happens * case 2: when y happens\n                \xe2\x80\xa2 ValueError -\n                     \xe2\x97\xa6 a is not all lowercase * current day is Sunday\n
Run Code Online (Sandbox Code Playgroud)\n
class A\n    def f1(self, a: str):\n        """f1\n\n        Parameters\n        ----------\n        a: str\n            a\n\n        Raises\n        ------\n        RuntimeError\n            * case 1: when x happens\n            * case 2: when y happens\n\n        ValueError\n            * ``a`` is not all lowercase\n            * current day is Sunday\n        """\n
Run Code Online (Sandbox Code Playgroud)\n