Skip to content

Simplify code by using None extents - #10231

Merged
radarhere merged 4 commits into
python-pillow:mainfrom
radarhere:simplify
Oct 19, 2026
Merged

radarhere merged 4 commits into
python-pillow:mainfrom
radarhere:simplify

Conversation

@radarhere

Copy link
Copy Markdown
Member
  1. Added type hints #8285 expanded the _Tile extents type hint to allow for None. This uses None in more locations for the extents, to simplify code, and setting None as the default.
  2. Allow None extents in C setimage() #9504 allowed None to be accepted as extents consistently by setimage(). This builds on that by having it consistently use None as the default extents value, also simplifying Python code.

@radarhere radarhere changed the title Simplify tiles by using None extents Simplify code by using None extents Oct 17, 2026
@radarhere
radarhere merged commit d921b0f into python-pillow:main Oct 19, 2026
61 checks passed
@radarhere
radarhere deleted the simplify branch October 19, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant