Skip to content

[Doc] Improve documentation types #26186

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
Jun 29, 2023
Merged

Conversation

oscargus
Copy link
Member

PR summary

From https://matplotlib.org/stable/devel/documenting_mpl.html#referencing-types

"Use full references ~matplotlib.colors.Normalize with an abbreviation tilde in parameter types."

This should be all that misses a ~ but has a fully qualified name. Then there are quite a lot that doesn't have fully qualified names...

PR checklist

@oscargus oscargus added this to the v3.7.2 milestone Jun 25, 2023
@oscargus oscargus force-pushed the docabrv branch 3 times, most recently from db98e70 to c33bccf Compare June 25, 2023 12:46
@@ -774,7 +774,7 @@ def set_clip_path(self, path, transform=None):

Parameters
----------
path : `.Patch` or `.Path` or `.TransformedPath` or None
path : `~matplotlib.patches.Patch` or `.Path` or `.TransformedPath` or None
Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this one can be even better, but so far I'm down the search and replace route.

@tacaswell tacaswell merged commit d780621 into matplotlib:main Jun 29, 2023
@lumberbot-app
Copy link

lumberbot-app bot commented Jun 29, 2023

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout v3.7.x
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 d78062174b78d240f913a429672b9656b9f16485
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #26186: [Doc] Improve documentation types'
  1. Push to a named branch:
git push YOURFORK v3.7.x:auto-backport-of-pr-26186-on-v3.7.x
  1. Create a PR against branch v3.7.x, I would have named this PR:

"Backport PR #26186 on branch v3.7.x ([Doc] Improve documentation types)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.

tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Jun 29, 2023
[Doc] Improve documentation types

(cherry picked from commit d780621)
@tacaswell
Copy link
Member

The conflicts are with #25873 so I'll backport both that PR and this one in one move.

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.

2 participants