Skip to content

fix: remove list from putpixel value type annotation#9783

Closed
muhamedfazalps wants to merge 1 commit into
python-pillow:mainfrom
muhamedfazalps:putpixelannot
Closed

fix: remove list from putpixel value type annotation#9783
muhamedfazalps wants to merge 1 commit into
python-pillow:mainfrom
muhamedfazalps:putpixelannot

Conversation

@muhamedfazalps

Copy link
Copy Markdown

The putpixel method's value parameter was typed as accepting list[int], but the underlying C code only accepts tuple or int, causing a TypeError at runtime when a list is passed.

Fixes #9584

The putpixel method's value parameter was typed as accepting list[int],
but the underlying C code only accepts tuple or int, causing a TypeError
at runtime when a list is passed.

Fixes python-pillow#9584
@hugovk

hugovk commented Jul 7, 2026

Copy link
Copy Markdown
Member

This is a duplicate of #9782 and #9781.

@hugovk hugovk closed this Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image.putpixel incorrectly labels supported arguments in type annotations

3 participants