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

Import PIL.Image explicitly over PIL#26490

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

Merged
story645 merged 1 commit intomatplotlib:mainfromQuLogic:pil-image
Aug 13, 2023

Conversation

QuLogic
Copy link
Member

PR summary

We seem to usePIL.Image.* pretty often while only importingPIL. This mostly works, but seems to be by fluke depending on what may or may not have importedPIL.Image beforehand.

For example, if you have a file that just doesimport matplotlib.widgets (which itself imports onlyPIL), thenmypy will crash due to incompletePIL.

PR checklist

We seem to use `PIL.Image.*` pretty often while only importing `PIL`.This mostly works, but seems to be by fluke depending on what may or maynot have imported `PIL.Image`.For example, if you have a file that just does `importmatplotlib.widgets` (which itself imports only `PIL`), then `mypy` willcrash due to incomplete `PIL`.
@QuLogicQuLogic added this to thev3.8.0 milestoneAug 10, 2023
@story645story645 merged commitbba391d intomatplotlib:mainAug 13, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestAug 13, 2023
ksunden added a commit that referenced this pull requestAug 14, 2023
…490-on-v3.8.xBackport PR#26490 on branch v3.8.x (Import PIL.Image explicitly over PIL)
@QuLogicQuLogic deleted the pil-image branchAugust 14, 2023 22:30
@ksundenksunden mentioned this pull requestSep 15, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 approved these changes

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@story645@ksunden

[8]ページ先頭

©2009-2025 Movatter.jp