Skip to content

Reorder ImageMode tuples - #9808

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:order
Aug 5, 2026
Merged

Reorder ImageMode tuples#9808
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:order

Conversation

@radarhere

Copy link
Copy Markdown
Member

I find it confusing that bands does not consistently appear before base_mode in this code.

base_mode, base_type, bands, type_str = modes[mode]
return ModeDescriptor(mode, bands, base_mode, base_type, type_str)

This PR rearranges the contents of modes so that it does.

@radarhere
radarhere merged commit 79c0a67 into python-pillow:main Aug 5, 2026
55 of 57 checks passed
@radarhere
radarhere deleted the order branch August 5, 2026 13:19
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