Skip to content

don't hide deprecation warnings #44

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flokli
Copy link

@flokli flokli commented Apr 28, 2025

This code was responsible from hiding deprecation warnings if a key gets unused, but it causes more harm than good:

mpl did refactor their deprecation system, and the code simply failed as the old mpl.cbook.MatplotlibDeprecationWarning didn't exist anymore.

Instead of going the approach of #39 or #43 again and adjusting to the change, simply drop the deprecation warning hiding alltogether.

It'll show when july starts using deprecated keys, so they can be updated.

Also use mpl.rcParams[key] = value directly and drop the ConfigDict logic, as it's unneeded.

Closes #39.
Closes #43.

This code was responsible from hiding deprecation warnings if a key gets
unused, but it causes more harm than good:

mpl did refactor their deprecation system, and the code simply failed as
the old mpl.cbook.MatplotlibDeprecationWarning didn't exist anymore.

Instead of going the approach of e-hulten#39 or e-hulten#43 again and adjusting to the
change, simply drop the deprecation warning hiding alltogether.

It'll show when july starts using deprecated keys, so they can be
updated.

Also use `mpl.rcParams[key] = value` directly and drop the ConfigDict
logic, as it's unneeded.

Closes e-hulten#39.
Closes e-hulten#43.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant