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

Add stub for _image#30058

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

Closed
oscargus wants to merge1 commit intomatplotlib:mainfromoscargus:_imagestub
Closed

Conversation

oscargus
Copy link
Member

@oscargusoscargus commentedMay 16, 2025
edited
Loading

PR summary

In#30054 there are mypy errors since this private module is not typed and the tests access it directly. I guess there is no harm to have typing here?

Just used mypy stubgen to generate one.

Edit: turns out that stubgen sorts the members in alphabetical order which lead to different enum numbering in the stubfile and the built class, so removed those from the class.

Edit 2: that wasn't it. No idea how to get this (apart from manually order them(?), but that seems brittle...)

PR checklist

@QuLogic
Copy link
Member

You would also need to updatelib/matplotlib/image.pyi which has another copy of those stubs, and change it to re-export them from the private one.stubtest is not currently complaining about the new ones here, but the old ones.

oscargus reacted with thumbs up emoji

@oscargus
Copy link
MemberAuthor

As the problem I was trying to solve is solved in a better way to import the relevant things fromimage instead of_image this doesn't really contribute anything at the moment so will close it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@oscargus@QuLogic@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp