Loading examples/how_to_write_docstring.py +4 −0 Original line number Diff line number Diff line Loading @@ -30,5 +30,9 @@ def cos(x: float = 0.): -------- >>> import numpy as np >>> cos(np.pi) Notes ----- this function is a warpper of `numpy.cos()` """ return np.cos(x) Loading
examples/how_to_write_docstring.py +4 −0 Original line number Diff line number Diff line Loading @@ -30,5 +30,9 @@ def cos(x: float = 0.): -------- >>> import numpy as np >>> cos(np.pi) Notes ----- this function is a warpper of `numpy.cos()` """ return np.cos(x)