From d83c8351d950f6fd7f0b5ada848684dfff8dd326 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 1 May 2024 22:03:33 +1000 Subject: [PATCH] putalpha does not allow other color values --- src/PIL/Image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index bd99ba65705..f99dcb2cedd 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1909,8 +1909,7 @@ def putalpha(self, alpha: Image | int) -> None: The new layer must be either "L" or "1". :param alpha: The new alpha layer. This can either be an "L" or "1" - image having the same size as this image, or an integer or - other color value. + image having the same size as this image, or an integer. """ self._ensure_mutable()