Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Fix docstrings for multiple parameters #5186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 11, 2015

Conversation

jkseppan
Copy link
Member

@jkseppan jkseppan commented Oct 4, 2015

:param x, y: is wrong, it looks like y (x,) in the result
:param x,y: is better, it looks like x,y

Really I suspect sphinx doesn't support describing multiple parameters in one list item, but this way it looks less nonsensical.

Idea from https://sources.debian.net/src/matplotlib/1.4.2-3.1/debian/patches/50_bts608942_spaces_in_param_args.patch/ but this fixes more cases.

:param x, y: is wrong, it looks like *y* (x,) in the result
:param x,y: is better, it looks like *x,y*

Really I suspect sphinx doesn't support describing multiple parameters
in one list item, but this way it looks less nonsensical.

Idea from https://sources.debian.net/src/matplotlib/1.4.2-3.1/debian/patches/50_bts608942_spaces_in_param_args.patch/
but this fixes more cases.
@tacaswell
Copy link
Member

These really should be converted to numpydoc format which does support multiple parameters per line.

@mdboom
Copy link
Member

mdboom commented Oct 6, 2015

Yeah -- we should eventually be aiming for numpydoc/napolean across the board, I think...

@tacaswell tacaswell modified the milestone: next point release (1.5.0) Oct 8, 2015
tacaswell added a commit that referenced this pull request Oct 11, 2015
DOC: Fix docstrings for multiple parameters
@tacaswell tacaswell merged commit 3991909 into matplotlib:master Oct 11, 2015
tacaswell added a commit that referenced this pull request Oct 11, 2015
DOC: Fix docstrings for multiple parameters
@tacaswell
Copy link
Member

back-ported as 207be0f

@jkseppan jkseppan deleted the param-comma branch October 13, 2015 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants