Skip to content
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

PIL Image.load return value is wrong #10084

Closed
mementum opened this issue Apr 26, 2023 · 1 comment
Closed

PIL Image.load return value is wrong #10084

mementum opened this issue Apr 26, 2023 · 1 comment

Comments

@mementum
Copy link

The stub for Image.load says the method returns nothing.

def load(self) -> None: ...

But the actual load method returns something. See link

https://github.com/python-pillow/Pillow/blob/f32e6a6ae6ed57f772b5840221e320d5473b094d/src/PIL/Image.py#L3832

pixel_access is defined in the C part of the library giving the type the name PixelAccess (as also referenced in the documentation)

https://github.com/python-pillow/Pillow/blob/b4419169a42b201903fef72712b1fcd43c2ebcef/src/_imaging.c#L3832

@Akuli
Copy link
Collaborator

Akuli commented Apr 26, 2023

Duplicate of #9126.

@Akuli Akuli closed this as completed Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants