Type annotations: Amend Image.getdata to return ImagingCore.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-20 17:26:39 -07:00 committed by Eric Soroos
parent 5515520d4c
commit 636e7406b3

View File

@ -1261,7 +1261,7 @@ class Image(object):
return self.im.getcolors(maxcolors) return self.im.getcolors(maxcolors)
def getdata(self, band=None): def getdata(self, band=None):
# type: (Optional[int]) -> Sequence # type: (Optional[int]) -> ImagingCore
""" """
Returns the contents of this image as a sequence object Returns the contents of this image as a sequence object
containing pixel values. The sequence object is flattened, so containing pixel values. The sequence object is flattened, so