Fix return type of Image.reduce() in Pillow (#5946)

Image.reduce() should return an Image instead of None.
This commit is contained in:
SeenicRoot
2021-08-22 23:03:22 -04:00
committed by GitHub
parent e4879abb59
commit 034a5f6aec

View File

@@ -176,7 +176,7 @@ class Image:
box: tuple[float, float, float, float] | None = ...,
reducing_gap: float | None = ...,
) -> Image: ...
def reduce(self, factor: int | tuple[int, int] | list[int], box: _Box | None = ...) -> None: ...
def reduce(self, factor: int | tuple[int, int] | list[int], box: _Box | None = ...) -> Image: ...
def rotate(
self,
angle: float,