Open tovrstra opened 6 years ago
So both the numpy and google docstrings have legacy formats where type are specified in the docstring and also modern ones where the type is in a 3.5-ish typehint.
I think the numpy style looks better. Also there's a smaller number of indents, which should be less trouble for programming.
Sounds good. I'm just adding reference for those who are new to this.
@matt-chan can you add links to a numpydoc spec with the type hinting?
We can see examples of google and numpy docstrings here
http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html