putalpha does not allow other color values

This commit is contained in:
Andrew Murray 2024-05-01 22:03:33 +10:00 committed by Ondrej Baranovič
parent c1f10c107a
commit 7e14364cee

View File

@ -1933,8 +1933,7 @@ class Image:
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()