Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ The sections of a function's docstring are:
x1, x2 : array_like
Input arrays, description of `x1`, `x2`.

When documenting variable length positional, or keyword arguments, leave the
leading star(s) in front of the name::

*args : tuple
Additional arguments should be passed as keyword arguments
**kwargs : dict, optional
Extra arguments to `metric`: refer to each metric documentation for a
list of all possible arguments.

..
above example is from scipy.spatial.distance.pdist

5. **Returns**

Explanation of the returned values and their types. Similar to the
Expand Down