Skip to content

MNT: Don't rely on RcParams being a dict subclass in internal code #28730

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
Aug 15, 2024

Conversation

timhoffm
Copy link
Member

Eventually, we want to be able to remove the dict subclassing from RcParams, which will allow better initialization and handling.

We've publically announced that people should not rely on dict in https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.7.0.html#rcparams-type

This is an internal cleanup step to remove the dict-assumption and a preparation for further refactoring.

@timhoffm timhoffm changed the title Cleanup rc params upate MNT: Don't rely on RcParams being a dict subclass in internal code Aug 15, 2024
@timhoffm timhoffm force-pushed the cleanup-rcParams-upate branch from 7f5afe3 to 34aa20c Compare August 15, 2024 14:57
tacaswell
tacaswell previously approved these changes Aug 15, 2024
@tacaswell tacaswell added this to the v3.10.0 milestone Aug 15, 2024
@tacaswell tacaswell dismissed their stale review August 15, 2024 15:16

never mind, this seems to have added a circular import issue.

@timhoffm timhoffm force-pushed the cleanup-rcParams-upate branch from 34aa20c to 8503bb6 Compare August 15, 2024 15:39
Eventually, we want to be able to remove the dict subclassing from
RcParams, which will allow better initialization and handling.

We've publically announced that people should not rely on dict in
https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.7.0.html#rcparams-type

This is an internal cleanup step to remove the dict-assumption and a
preparation for further refactoring.
@timhoffm timhoffm force-pushed the cleanup-rcParams-upate branch from 8503bb6 to 01ceeef Compare August 15, 2024 15:47
@ksunden ksunden merged commit 186f36d into matplotlib:main Aug 15, 2024
43 checks passed
@timhoffm timhoffm deleted the cleanup-rcParams-upate branch August 15, 2024 20:18
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