Skip to content

Commit 3e54ca7

Browse files
committed
Setup test cases for RST213/args and RST219/kwargs
1 parent 016ff1f commit 3e54ca7

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
def module_level_function(param1, param2=None, *args, **kwargs):
2+
"""This is an example of a module level function.
3+
4+
Here using the Google docstring style, notice that we have *not* escaped
5+
the asterisk in ``*args*`` or ``**kwargs`` in the argument list.
6+
7+
Args:
8+
param1 (int): The first parameter.
9+
param2 (str, optional): The second parameter. Defaults to None.
10+
*args: Variable length argument list.
11+
**kwargs: Arbitrary keyword arguments.
12+
13+
...
14+
"""
15+
pass
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
def module_level_function(param1, param2=None, *args, **kwargs):
2+
"""This is an example of a module level function.
3+
4+
Here using the Numpy docstring style, notice that we have *not* escaped
5+
the asterisk in ``*args*`` or ``**kwargs`` in the parameter list.
6+
7+
Parameters
8+
----------
9+
param1 : int
10+
The first parameter.
11+
param2 : str optional
12+
The second parameter.
13+
*args
14+
Variable length argument list.
15+
**kwargs
16+
Arbitrary keyword arguments.
17+
18+
...
19+
"""
20+
pass

0 commit comments

Comments
 (0)