Skip to content

Reorder ImageMode tuples#9808

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:order
Open

Reorder ImageMode tuples#9808
radarhere wants to merge 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.

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