-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Adjust types to python pillow 11.0
A pixel is `float | tuple[int, ...]` [1]. We only support RGBA in pixel tests, but we need to add some narrowing asserts to ensure that we get int tuples. Consistently adjust the signature of the helpers to a tuple of unspecified length, to match PIL's signatures. While we are at it, break up the overlong line. [1] https://pillow.readthedocs.io/en/stable/reference/PixelAccess.html#PixelAccess
- Loading branch information
1 parent
a3f8b44
commit 0aa19a4
Showing
1 changed file
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters