mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 07:04:45 +03:00
Type annotations: Amend Image.getdata to return ImagingCore.
This commit is contained in:
parent
5515520d4c
commit
636e7406b3
|
@ -1261,7 +1261,7 @@ class Image(object):
|
|||
return self.im.getcolors(maxcolors)
|
||||
|
||||
def getdata(self, band=None):
|
||||
# type: (Optional[int]) -> Sequence
|
||||
# type: (Optional[int]) -> ImagingCore
|
||||
"""
|
||||
Returns the contents of this image as a sequence object
|
||||
containing pixel values. The sequence object is flattened, so
|
||||
|
|
Loading…
Reference in New Issue
Block a user