mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 23:54:46 +03:00
Type annotations: Amend Image.getdata to return ImagingCore.
This commit is contained in:
parent
d936e0f649
commit
8213ec01fa
|
@ -1240,7 +1240,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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user