From 65a6a195f2f1e4c38feeea4c4721f6c53e16fdca Mon Sep 17 00:00:00 2001 From: John Villalovos Date: Wed, 5 Jul 2023 01:31:30 -0700 Subject: [PATCH] Pillow: Add `tuple[int, int]` to `_Color` TypeAlias (#10407) --- stubs/Pillow/PIL/Image.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/Pillow/PIL/Image.pyi b/stubs/Pillow/PIL/Image.pyi index bd8671760..2252388c5 100644 --- a/stubs/Pillow/PIL/Image.pyi +++ b/stubs/Pillow/PIL/Image.pyi @@ -29,7 +29,9 @@ _ConversionMatrix: TypeAlias = ( # `str` values are only accepted if mode="RGB" for an `Image` object # `float` values are only accepted for certain modes such as "F" # See https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.new -_Color: TypeAlias = int | tuple[int] | tuple[int, int, int] | tuple[int, int, int, int] | str | float | tuple[float] +_Color: TypeAlias = ( + int | tuple[int] | tuple[int, int] | tuple[int, int, int] | tuple[int, int, int, int] | str | float | tuple[float] +) class _Writeable(SupportsWrite[bytes], Protocol): def seek(self, __offset: int) -> Any: ...