Skip to content

Capitalize some docstrings. #13108

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
Jan 14, 2019
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 5, 2019

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -1356,8 +1356,7 @@ def rgb_to_hsv(arr):

def hsv_to_rgb(hsv):
"""
convert hsv values in a numpy array to rgb values
all values assumed to be in range [0, 1]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the same point is documented two lines below

verts, codes = font.get_path()
if currx != 0.0:
cbook._warn_deprecated(
"3.1", name="currx", obj_type="argument",
alternative="Manually translate the path vertices.")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

currx is not used in the codebase and that's really trivial for the caller to do it

Copy link
Member

Choose a reason for hiding this comment

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

I really dislike slipping in deprecations in a commit that says it's about trivial changes to docstrings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about that, reverted.

@@ -853,7 +852,7 @@ def _cancel_action(self):
return

def _press(self, event):
"""the _press mouse button in zoom to rect mode callback"""
"""Callback for mouse button presses in zoom to rect mode."""
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"""Callback for mouse button presses in zoom to rect mode."""
"""Callback for mouse button presses in zoom-to-rect mode."""

I would use hyphens for better readability, but not a native speaker, so not sure that's correct.

(occurs multiple times also in docstrings below)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Member

Choose a reason for hiding this comment

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

I don't see this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hum, sorry, forgot to push. Done.

QuLogic
QuLogic previously requested changes Jan 6, 2019
verts, codes = font.get_path()
if currx != 0.0:
cbook._warn_deprecated(
"3.1", name="currx", obj_type="argument",
alternative="Manually translate the path vertices.")
Copy link
Member

Choose a reason for hiding this comment

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

I really dislike slipping in deprecations in a commit that says it's about trivial changes to docstrings.

@timhoffm
Copy link
Member

timhoffm commented Jan 6, 2019

I agree with @QuLogic that we should separate documentation cleanup and functional changes. In particular, functional changes should be clear from the commit/PR message. It's not much work to do the deprecation in a separate PR.

@anntzer
Copy link
Contributor Author

anntzer commented Jan 6, 2019

Apologies, reverted the deprecation.

@anntzer anntzer force-pushed the capitalize-docstrings branch from e9f6f22 to 5ad94a9 Compare January 6, 2019 13:23
@anntzer anntzer mentioned this pull request Jan 6, 2019
6 tasks
@tacaswell tacaswell added this to the v3.1 milestone Jan 6, 2019
@anntzer anntzer force-pushed the capitalize-docstrings branch from 5ad94a9 to ecefd71 Compare January 6, 2019 23:20
anntzer and others added 2 commits January 7, 2019 01:01
Co-Authored-By: anntzer <anntzer.lee@gmail.com>
@anntzer anntzer force-pushed the capitalize-docstrings branch from ecefd71 to 2585d9f Compare January 7, 2019 00:01
@QuLogic QuLogic dismissed their stale review January 7, 2019 00:31

Deprecation removed.

Copy link
Member

@NelleV NelleV left a comment

Choose a reason for hiding this comment

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

Thanks @anntzer !

@NelleV NelleV merged commit a728b91 into matplotlib:master Jan 14, 2019
@anntzer anntzer deleted the capitalize-docstrings branch January 14, 2019 21:21
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.

5 participants