Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generalize validation that pyplot commands are documented#24000

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 1 commit intomatplotlib:mainfromtimhoffm:pyplot-test
Oct 16, 2022

Conversation

timhoffm
Copy link
Member

@timhoffmtimhoffm commentedSep 24, 2022
edited
Loading

Until now, the test made some exclusions (_NON_PLOT_COMMANDS) and reqired all functions to be documented in a single autosummary block.

This change ensures the documentation of the _NON_PLOT_COMMANDS and it allows the commands to be spread across arbitrary many autosummary sections. This is in preparation of regrouping the pyplot commands similar to the Axes documentation.

This also pending deprecatespyplot.get_plot_commands, which should not be a public function. I'm defensive by using pending, because ifget_plot_commands is used somewhere, that's most likely some downstream lib and we want to give them time to adapt.

Correctness of this change is automatically tested by by passingtest_pyplot.py::test_doc_pyplot_summary.

``matplotlib.pyplot.get_plot_commands``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

... is pending to be deprecated. This is considered internal and no end-user
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
...ispendingto be deprecated. This is considered internal and no end-user
... pendingdeprecation. This is considered internal and no end-user

Copy link
Member

Choose a reason for hiding this comment

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

... is a pending deprecation is another option, but the constructionpending to be reads super off to me

Copy link
Member

@QuLogicQuLogicSep 29, 2022
edited
Loading

Choose a reason for hiding this comment

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

Yes, 'pending' is a state (i.e., an adjective), not a verb. I guess 'pend' is apparently a verb, but it's not used with an object. So the deprecation may be pending, but you cannot 'pend a deprecation'.

It either 'is (in a state of) pending deprecation' or 'is a pending deprecation'.

@QuLogicQuLogic added this to thev3.7.0 milestoneSep 27, 2022
@story645
Copy link
Member

Uh I think something went wrong in the rebase 'cause I'm not seeing changes?

@timhoffm
Copy link
MemberAuthor

Hm, will check later.

@timhoffmtimhoffm marked this pull request as draftSeptember 29, 2022 06:28
@timhoffmtimhoffm marked this pull request as ready for reviewSeptember 29, 2022 20:59
@timhoffm
Copy link
MemberAuthor

@story645: fixed.

@story645
Copy link
Member

story645 commentedSep 29, 2022
edited
Loading

Not as far as I can tell :/

@timhoffm
Copy link
MemberAuthor

Rebased to fix CI.

Copy link
Member

@story645story645 left a comment
edited
Loading

Choose a reason for hiding this comment

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

See discussion btw. Elliot and me on the grammar of pending but also like I'm not actually keen on holding up a PR 'cause of grammar (edit: can self merge w/ or w/o changing sentence)

Until now, the test made some exclusions (_NON_PLOT_COMMANDS) andreqired all functions to be documented in a single autosummary block.This change ensures the documentation of the _NON_PLOT_COMMANDSand it allows the commands to be spread across arbitrary manyautosummary sections. This is in preparation of regrouping the pyplotcommands similar to the Axes documentation.This also pending deprecates `pyplot.get_plot_commands`, which shouldnot be a public function. I'm defensive by using pending, because if`get_plot_commands` is used somewhere, that's most likely somedownstream lib and we want to give them time to adapt.Co-authored-by: hannah <story645@gmail.com>
@timhoffmtimhoffm merged commitf4f9528 intomatplotlib:mainOct 16, 2022
@timhoffmtimhoffm deleted the pyplot-test branchOctober 16, 2022 10:38
QuLogic added a commit to QuLogic/matplotlib that referenced this pull requestMar 30, 2023
The typing PR found that this was returning a generator [1], but thiswas an error frommatplotlib#24000, as 3.6 and earlier returned a list.[1]matplotlib#24976 (comment)
Higgs32584 pushed a commit to Higgs32584/matplotlib that referenced this pull requestApr 17, 2023
The typing PR found that this was returning a generator [1], but thiswas an error frommatplotlib#24000, as 3.6 and earlier returned a list.[1]matplotlib#24976 (comment)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@story645story645story645 approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.7.0
Development

Successfully merging this pull request may close these issues.

3 participants
@timhoffm@story645@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp