mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Fix return type of Image.reduce() in Pillow (#5946)
Image.reduce() should return an Image instead of None.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user