From 034a5f6aec1d544d681e7286c70db8f32ae6b876 Mon Sep 17 00:00:00 2001 From: SeenicRoot Date: Sun, 22 Aug 2021 23:03:22 -0400 Subject: [PATCH] Fix return type of Image.reduce() in Pillow (#5946) Image.reduce() should return an Image instead of None. --- stubs/Pillow/PIL/Image.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Pillow/PIL/Image.pyi b/stubs/Pillow/PIL/Image.pyi index 98656a786..4d7113496 100644 --- a/stubs/Pillow/PIL/Image.pyi +++ b/stubs/Pillow/PIL/Image.pyi @@ -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,