Skip to content

pillow image modes are missing #7956

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

Closed
misimisi171718 opened this issue May 26, 2022 · 1 comment · Fixed by #7960
Closed

pillow image modes are missing #7956

misimisi171718 opened this issue May 26, 2022 · 1 comment · Fixed by #7960
Labels
stubs: false positive Type checkers report false errors

Comments

@misimisi171718
Copy link

some of the image modes are missing from type hints like pa and others documented here

PIL.Image.new("pa",(5,5),(255,255))

throes the error

Argument 1 to "new" has incompatible type "Literal['PA']"; expected "Literal['1', 'CMYK', 'F', 'HSV', 'I', 'L', 'LAB', 'P', 'RGB', 'RGBA', 'RGBX', 'YCbCr']"
@AlexWaygood
Copy link
Member

Thanks — PR welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stubs: false positive Type checkers report false errors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants