mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-11 14:31:55 +08:00
Pillow: Add tuple[int, int] to _Color TypeAlias (#10407)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user