mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Close #8236: napoleon: Support numpydoc's "Receives" section
This commit is contained in:
@@ -303,6 +303,34 @@ class GoogleDocstringTest(BaseDocstringTest):
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
Receive:
|
||||
arg1 (list(int)): Description
|
||||
arg2 (list[int]): Description
|
||||
""",
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
:Receives: * **arg1** (*list(int)*) -- Description
|
||||
* **arg2** (*list[int]*) -- Description
|
||||
"""
|
||||
), (
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
Receives:
|
||||
arg1 (list(int)): Description
|
||||
arg2 (list[int]): Description
|
||||
""",
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
:Receives: * **arg1** (*list(int)*) -- Description
|
||||
* **arg2** (*list[int]*) -- Description
|
||||
"""
|
||||
), (
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
Yield:
|
||||
str:Extended
|
||||
description of yielded value
|
||||
@@ -1263,6 +1291,48 @@ class NumpyDocstringTest(BaseDocstringTest):
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
Receive
|
||||
-------
|
||||
arg1:str
|
||||
Extended
|
||||
description of arg1
|
||||
arg2 : int
|
||||
Extended
|
||||
description of arg2
|
||||
""",
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
:Receives: * **arg1** (:class:`str`) -- Extended
|
||||
description of arg1
|
||||
* **arg2** (:class:`int`) -- Extended
|
||||
description of arg2
|
||||
"""
|
||||
), (
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
Receives
|
||||
--------
|
||||
arg1:str
|
||||
Extended
|
||||
description of arg1
|
||||
arg2 : int
|
||||
Extended
|
||||
description of arg2
|
||||
""",
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
:Receives: * **arg1** (:class:`str`) -- Extended
|
||||
description of arg1
|
||||
* **arg2** (:class:`int`) -- Extended
|
||||
description of arg2
|
||||
"""
|
||||
), (
|
||||
"""
|
||||
Single line summary
|
||||
|
||||
Yield
|
||||
-----
|
||||
str
|
||||
|
Reference in New Issue
Block a user