Type annotations: Amend Image.getdata to return ImagingCore.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-20 17:26:39 -07:00
parent d936e0f649
commit 8213ec01fa

View File

@ -1240,7 +1240,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