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

Skip to content

Use numpydoc-style parameter lists for choices #11548

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 1 commit into from
Jul 4, 2018

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jul 2, 2018

PR Summary

Note: Not all of the corrected places are converted to full numpydoc Parameter sections yet. However, it's also easier to do so later, if we have already the possible parameter values formatted correctly.

@@ -234,8 +234,9 @@ def get_linewidth(self):

def get_linestyle(self):
"""
Return the linestyle. Will be one of ['solid' | 'dashed' |
'dashdot' | 'dotted']
Return the linestyle.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps make the whole thing a single Returns section?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the content is incomplete. There can be much more return values. See set_linestyle(). For simplicity I don't list them here again but just remove the comment on the returned content.

@timhoffm timhoffm force-pushed the numpydoc-parameter-choices branch from 8207894 to 3745a56 Compare July 2, 2018 20:09
Other Parameters
----------------
**kwargs
Additional kwargs inherited from the base :class:`Collection`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional : at end of line.

@timhoffm timhoffm force-pushed the numpydoc-parameter-choices branch from 3745a56 to 10c04ca Compare July 3, 2018 19:52
Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone can merge after CI.

@tacaswell tacaswell added this to the v3.0 milestone Jul 4, 2018
@tacaswell tacaswell merged commit 4100e90 into matplotlib:master Jul 4, 2018
@timhoffm timhoffm deleted the numpydoc-parameter-choices branch July 4, 2018 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants