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

MNT: Cleanup docstring substitution mechanisms#28795

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

Conversation

timhoffm
Copy link
Member

@timhoffmtimhoffm commentedSep 9, 2024
edited
Loading

Inspired by#28746.

Since the module_docstring is internal, we can do this refactoring without deprecations.

It's probably easiest for review to go through the commits one after the other. Each is a simple change, but they often touch the same code so that separate PRs would depend on each other.

I've stripped this down for easier review. This is now two commits, which I suggest should be kept (i.e. please do not squash)

  • MNT: MakeSubstitution and_ArtistPropertiesSubstitution independent
    They do not have relevant functional overlap. Thus, it's simpler to keep them completely separated.
  • Rename_ArtistPropertiesSubstitution.update() toregister()
    While it's internally a dict.update. The logical process is a registration to make the names publically available. Also,
    remove the possibility to pass a dict. Passing kwargs is enough and we can simplify the API to only one type of usage.

@timhoffmtimhoffmforce-pushed thecleanup-docstring-substitution branch from149e3a0 toaf24473CompareSeptember 9, 2024 15:11
@timhoffmtimhoffmforce-pushed thecleanup-docstring-substitution branch 3 times, most recently from62dcafa to66c2048CompareSeptember 9, 2024 15:29
@timhoffmtimhoffm marked this pull request as draftSeptember 9, 2024 15:30
@timhoffmtimhoffmforce-pushed thecleanup-docstring-substitution branch from66c2048 to3a6901dCompareSeptember 9, 2024 15:40
@timhoffmtimhoffm added this to thev3.10.0 milestoneSep 9, 2024
@timhoffm
Copy link
MemberAuthor

timhoffm commentedSep 9, 2024
edited
Loading

Possible future improvement: One could still renameinterpd to something better. But I don't have a good name at hand right now and this PR is already large enough. I therefore suggest to defer further possible improvements to a separate PR.

@timhoffmtimhoffm marked this pull request as ready for reviewSeptember 9, 2024 16:03
@timhoffmtimhoffmforce-pushed thecleanup-docstring-substitution branch from3a6901d to3a319eeCompareSeptember 9, 2024 16:21
@timhoffmtimhoffmforce-pushed thecleanup-docstring-substitution branch from3a319ee to4e2b127CompareSeptember 16, 2024 09:59
They do not have relevant functional overlap. Thus, it's simplerto keep them completely separated.
While it's internally a dict.update. The logical process is aregistration to make the names publically available. Also,remove the possibility to pass a dict. Passing kwargs isenough and we can simplify the API to only one type of usage.
@timhoffmtimhoffmforce-pushed thecleanup-docstring-substitution branch from4e2b127 tofe9479aCompareSeptember 21, 2024 22:55
@ksundenksunden merged commit24c5048 intomatplotlib:mainSep 30, 2024
41 of 43 checks passed
@timhoffmtimhoffm deleted the cleanup-docstring-substitution branchSeptember 30, 2024 23:55
@ksundenksunden mentioned this pull requestOct 2, 2024
3 tasks
kyracho pushed a commit to kyracho/matplotlib that referenced this pull requestOct 10, 2024
* MNT: Make Substitution and _ArtistPropertiesSubstitution independentThey do not have relevant functional overlap. Thus, it's simplerto keep them completely separated.* Rename _ArtistPropertiesSubstitution.update() to register()While it's internally a dict.update. The logical process is aregistration to make the names publically available. Also,remove the possibility to pass a dict. Passing kwargs isenough and we can simplify the API to only one type of usage.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

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

Successfully merging this pull request may close these issues.

3 participants
@timhoffm@QuLogic@ksunden

[8]ページ先頭

©2009-2025 Movatter.jp