mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +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:
1 parent
e4879abb59
commit
034a5f6aec
1 file changed
+1
-1
@@ -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