Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prepare to turn matplotlib.style into a plain module.#30163

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
anntzer wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromanntzer:ms

Conversation

anntzer
Copy link
Contributor

Having matplotlib.style be a package with the entire implementation in matplotlib.style.core is a bit overkill, and also makes it slightly awkward that USER_LIBRARY_PATHS is effectively a public API (clearly intended as so, per the comment, even though we may do it differently nowadays...) but only available in matplotlib.style.core, whereas everything else is re-exported by matplotlib.style.

Prepare to flatten the implementation by deprecating matplotlib.style.core and reexporting USER_LIBRARY_PATHS in matplotlib.style. Once the deprecation elapses, we'll be able to move the implementation into a plain matplotlib/style.py module.

PR summary

PR checklist

@anntzeranntzerforce-pushed thems branch 3 times, most recently from6dbfc13 to9d16b89CompareJune 11, 2025 18:49
@tacaswelltacaswell added this to thev3.11.0 milestoneJun 12, 2025
@anntzer
Copy link
ContributorAuthor

mypy seems unhappy

lib/matplotlib/style/__init__.py:241: error: Need type annotation for "library" (hint: "library: dict[<type>, <type>] = ...")  [var-annotated]lib/matplotlib/style/__init__.py:242: error: Need type annotation for "available" (hint: "available: list[<type>] = ...")  [var-annotated]

even though these are clearly listed in__init__.pyi, do you know why/how to fix this?

@tacaswell
Copy link
Member

I suspect it is the issue is that it is missing from the meson.build.

@anntzer
Copy link
ContributorAuthor

Ah, thanks for pointing it out. Dropping style/meson.build is probably another good reason for the change :)

Having matplotlib.style be a package with the entire implementation inmatplotlib.style.core is a bit overkill, and also makes it slightlyawkward that USER_LIBRARY_PATHS is effectively a public API (clearlyintended as so, per the comment, even though we may do it differentlynowadays...) but only available in matplotlib.style.core, whereaseverything else is re-exported by matplotlib.style.Prepare to flatten the implementation by deprecatingmatplotlib.style.core and reexporting USER_LIBRARY_PATHS inmatplotlib.style.  Once the deprecation elapses, we'll be able tomove the implementation into a plain matplotlib/style.py module.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

2 participants
@anntzer@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp