8000 Deprecate unused "frac" key in annotate() arrowprops. by anntzer · Pull Request #26080 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
8000

Deprecate unused "frac" key in annotate() arrowprops. #26080

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 6, 2023

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Jun 5, 2023

This key has been unused for ~8y (197fc9f).

PR summary

PR checklist

@anntzer anntzer added this to the v3.8.0 milestone Jun 5, 2023
Comment on lines 1843 to 1846
if 'frac' in arrowprops:
_api.warn_deprecated(
"3.8", message="Support for passing the (unused) 'frac' key "
"has been removed %(since)s and will be removed %(removal)s.")
Copy link
Member
@QuLogic QuLogic Jun 5, 2023

Choose a reason for hiding this comment

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

It's still only deprecated?

Suggested change
if 'frac' in arrowprops:
_api.warn_deprecated(
"3.8", message="Support for passing the (unused) 'frac' key "
"has been removed %(since)s and will be removed %(removal)s.")
if 'frac' in arrowprops:
_api.warn_deprecated(
"3.8", name="The (unused) 'frac' key in *arrowprops*")
arrowprops.pop('frac')

Edit: Actually, it doesn't seem like you'd need to override the whole message, but you should add the context of where frac is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup

@QuLogic QuLogic merged commit 3b7845a into matplotlib:main Jun 6, 2023
@anntzer anntzer deleted the af branch June 6, 2023 22:19
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.

4 participants
0