Skip to content

MNT: Deprecate other capitalization than "None" in matplotlibrc#29529

Merged
QuLogic merged 1 commit into
matplotlib:mainfrom
timhoffm:mnt-matplotlibrc-none
Jan 28, 2025
Merged

MNT: Deprecate other capitalization than "None" in matplotlibrc#29529
QuLogic merged 1 commit into
matplotlib:mainfrom
timhoffm:mnt-matplotlibrc-none

Conversation

@timhoffm

Copy link
Copy Markdown
Member

The *_or_None validators have accepted any capitalization of the string "none" as input. This is overly permissive and will likely lead to conflicts in the future because we cannot distinguish between resolving to None and "none" which may be need for some parameters in the future.

Inspired by #29481.

@timhoffm timhoffm force-pushed the mnt-matplotlibrc-none branch from 61a0829 to 93e01c8 Compare January 27, 2025 15:20
@timhoffm timhoffm added Maintenance API: changes Changes to the public API, typically requiring deprecation. labels Jan 27, 2025
@timhoffm timhoffm added this to the v3.11.0 milestone Jan 27, 2025
@rcomer

rcomer commented Jan 27, 2025

Copy link
Copy Markdown
Member

I appear to have infiltrated your commit somehow 😕

Comment thread lib/matplotlib/rcsetup.py Outdated
@timhoffm

Copy link
Copy Markdown
Member Author

I appear to have infiltrated your commit somehow 😕

Not sure how this happend 😆. I've possibly messed up with --amend when creating the PR, but don't remember. If it's ok for you, I would not bother.

@story645 story645 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+- fixing the flake error

@QuLogic

QuLogic commented Jan 27, 2025

Copy link
Copy Markdown
Member

Not sure how this happend 😆. I've possibly messed up with --amend when creating the PR, but don't remember. If it's ok for you, I would not bother.

It seems like you'll have to update to fix the linting anyway, so to fix, use git commit --amend --reset-author.

The `*_or_None` validators have accepted any capitalization of the
string "none" as input. This is overly permissive and
will likely lead to conflicts in the future because we cannot
distinguish between resolving to `None` and `"none"` which may be need
for some parameters in the future.

Inspired by matplotlib#29481.
@timhoffm timhoffm force-pushed the mnt-matplotlibrc-none branch from 9225687 to 5c8c9b5 Compare January 27, 2025 23:27
@QuLogic QuLogic merged commit 743a005 into matplotlib:main Jan 28, 2025
@timhoffm timhoffm deleted the mnt-matplotlibrc-none branch January 28, 2025 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API: changes Changes to the public API, typically requiring deprecation. Maintenance topic: rcparams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants