Change stub of Pillow.Image.new() to accept str for color argument (#5851)

This commit is contained in:
Jacob Walls
2021-08-06 04:56:12 -04:00
committed by GitHub
parent 9bba8a4b83
commit 5e0012569d

View File

@@ -218,7 +218,7 @@ class Image:
class ImagePointHandler: ...
class ImageTransformHandler: ...
def new(mode: _Mode, size: tuple[int, int], color: float | Tuple[float, ...] = ...) -> Image: ...
def new(mode: _Mode, size: tuple[int, int], color: float | Tuple[float, ...] | str = ...) -> Image: ...
def frombytes(mode: _Mode, size: tuple[int, int], data, decoder_name: str = ..., *args) -> Image: ...
def frombuffer(mode: _Mode, size: tuple[int, int], data, decoder_name: str = ..., *args) -> Image: ...
def fromarray(obj, mode: _Mode | None = ...) -> Image: ...