Skip to content

MNT: expire legend-related deprecations #29832

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
Mar 31, 2025

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Mar 29, 2025

PR summary

Expire the deprecations from #27175 and #27767

PR checklist

"be discarded. This is deprecated since %(since)s and will "
"become an error in %(removal)s."))
raise ValueError("When passing handles and labels, they must both be "
"passed positionally or both as keywords.")
Copy link
Member Author

Choose a reason for hiding this comment

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

Is there a better exception type than ValueError for this situation?

Copy link
Member

Choose a reason for hiding this comment

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

There's no really good match. I'm inclined to go with TypeError as that is used in other cases, when the signature is not fulfilled.

@rcomer rcomer force-pushed the legend-deprecations branch from 46ffb4c to 2bb7ea8 Compare March 30, 2025 10:38
@rcomer rcomer force-pushed the legend-deprecations branch from 2bb7ea8 to c5afbfc Compare March 30, 2025 10:59
@rcomer
Copy link
Member Author

rcomer commented Mar 30, 2025

Rebased to pick up #29834

@oscargus oscargus merged commit ade791f into matplotlib:main Mar 31, 2025
41 checks passed
@rcomer rcomer deleted the legend-deprecations branch March 31, 2025 12:12
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.

3 participants