In Google style Python docstring, one can specify Args
, Returns
, Raises
as follows.
"""This is an example of Google style.
Args:
param1: This is the first param.
param2: This is a second param.
Returns:
This is a description of what is returned.
Raises:
KeyErr
"""
I have many functions that, instead of returning stuff, write the results to the disk. I find it often useful to also document what the function will write to disk, e.g., using Writes:
, which doesn't seem supported by sphinx.ext.napoleon
.
What is the best way of doing so?