From 636e7406b376af537328e08a556a27c4da79dd6f Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sun, 20 Aug 2017 17:26:39 -0700 Subject: [PATCH] Type annotations: Amend Image.getdata to return ImagingCore. --- src/PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 4675c01e3..9696f5d50 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -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