mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 07:04:45 +03:00
Type annotations: Allow Image.putpalette to accept ImagePalette.
This commit is contained in:
parent
48e183eaf1
commit
2ab28d5084
|
@ -1640,7 +1640,7 @@ class Image(object):
|
|||
self.im.putdata(data, scale, offset)
|
||||
|
||||
def putpalette(self, data, rawmode="RGB"):
|
||||
# type: (Sequence[Union[int, bytes]], Mode) -> None
|
||||
# type: (Union[ImagePalette.ImagePalette, Sequence[Union[int, bytes]]], Mode) -> None
|
||||
"""
|
||||
Attaches a palette to this image. The image must be a "P" or
|
||||
"L" image, and the palette sequence must contain 768 integer
|
||||
|
|
Loading…
Reference in New Issue
Block a user