Pillow: Add tuple[int, int] to _Color TypeAlias (#10407)

This commit is contained in:
John Villalovos
2023-07-05 01:31:30 -07:00
committed by GitHub
parent 7646d38302
commit 65a6a195f2

View File

@@ -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: ...