Skip to content

Commit

Permalink
putalpha does not allow other color values
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 1, 2024
1 parent 007caae commit d83c835
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d83c835

Please sign in to comment.