From 3e021f33307beb4fb8f2e1942740c31e595a2ad7 Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:20:44 +1100 Subject: [PATCH] Pillow: ImageOps.autocontrast can set low and high cutoffs separately (#11408) ImageOps.autocontrast can set low and high cutoffs separately --- stubs/Pillow/PIL/ImageOps.pyi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stubs/Pillow/PIL/ImageOps.pyi b/stubs/Pillow/PIL/ImageOps.pyi index 58beed0d063c..007df5eb0be5 100644 --- a/stubs/Pillow/PIL/ImageOps.pyi +++ b/stubs/Pillow/PIL/ImageOps.pyi @@ -12,7 +12,11 @@ class _Deformer(Protocol): def getmesh(self, __image: Image): ... def autocontrast( - image: Image, cutoff: int = 0, ignore: int | None = None, mask: Image | None = None, preserve_tone: bool = False + image: Image, + cutoff: int | tuple[int, int] = 0, + ignore: int | None = None, + mask: Image | None = None, + preserve_tone: bool = False, ) -> Image: ... def colorize( image: Image,