From 15b443c074e2c584e8b3779d174e091cfcaeb729 Mon Sep 17 00:00:00 2001 From: Keewis Date: Mon, 8 Jun 2020 13:52:46 +0200 Subject: [PATCH] add a test for combined args and kwargs --- tests/test_ext_napoleon_docstring.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py index 738fd6532..879a2aaa4 100644 --- a/tests/test_ext_napoleon_docstring.py +++ b/tests/test_ext_napoleon_docstring.py @@ -1189,6 +1189,23 @@ class NumpyDocstringTest(BaseDocstringTest): """ Single line summary + Parameters + ---------- + arg1:str + Extended description of arg1 + *args, **kwargs: + Variable length argument list and arbitrary keyword arguments. + """, + """ + Single line summary + + :Parameters: * **arg1** (*str*) -- Extended description of arg1 + * **\\*args, \\*\\*kwargs** -- Variable length argument list and arbitrary keyword arguments. + """ + ), ( + """ + Single line summary + Yield ----- str