Skip to content

Only pass one argument to C expand#9664

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:expand
Jun 14, 2026
Merged

Only pass one argument to C expand#9664
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:expand

Conversation

@radarhere

Copy link
Copy Markdown
Member

This is the only time that C expand is called.

image = image.expand(self.size // 2, self.size // 2)

Let's simplify this by only using one argument, instead of two.

@radarhere radarhere merged commit 13d6c5e into python-pillow:main Jun 14, 2026
62 of 64 checks passed
@radarhere radarhere deleted the expand branch June 14, 2026 21:46
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