Skip to content

Cleanups#61

Merged
QuLogic merged 2 commits into
matplotlib:masterfrom
anntzer:cleanup
Apr 23, 2021
Merged

Cleanups#61
QuLogic merged 2 commits into
matplotlib:masterfrom
anntzer:cleanup

Conversation

@anntzer

@anntzer anntzer commented Feb 9, 2021

Copy link
Copy Markdown
Contributor

First commit: Don't dupe concat() definition; inline _compose().

The concat method can just directly reuse the free function
definition. (Also using string-joining was a bit overkill.)

Inlining _compose into __iter__ (its sole user) seems easier to
follow than having it defined nearly 50 lines away).

Second commit: Minor doc cleanups.

Punctuation. Use "cycler" instead of "Cycler" or "cycle" in sentences
slightly more consistently. Remove parameter descriptions that add no
information ("the second Cycler"). Remove unnecessary whitespace.

The `concat` method can just directly reuse the free function
definition.  (Also using string-joining was a bit overkill.)

Inlining `_compose` into `__iter__` (its sole user) seems easier to
follow than having it defined nearly 50 lines away).

@timhoffm timhoffm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The changes are intended to make the concat docstring match both the function and the method as good as possible.

Comment thread cycler.py Outdated
Comment thread cycler.py Outdated
Comment thread cycler.py Outdated
Punctuation.  Use "cycler" instead of "Cycler" or "cycle" in sentences
slightly more consistently.  Remove parameter descriptions that add no
information ("the second Cycler").  Remove unnecessary whitespace.
@anntzer

anntzer commented Feb 9, 2021

Copy link
Copy Markdown
Contributor Author

yup, all agreed.

@QuLogic QuLogic merged commit 723d82b into matplotlib:master Apr 23, 2021
@anntzer anntzer deleted the cleanup branch April 23, 2021 23:37
@QuLogic QuLogic added this to the v1.0 milestone Oct 25, 2021
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