Skip to content

Raise an error when calling quantize() with an empty palette - #10129

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:empty_palette
Oct 6, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:empty_palette

Conversation

@radarhere

Copy link
Copy Markdown
Member

Raise an error on im.quantize(palette=empty_palette) as it is more or less undefined behaviour.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jeffrey 'Alex' Clark <aclark@aclark.net>
@radarhere
radarhere merged commit 13943c8 into python-pillow:main Oct 6, 2026
60 checks passed
@radarhere
radarhere deleted the empty_palette branch October 6, 2026 01:01
@radarhere radarhere added the 🤖-assisted AI-assisted label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant