From 8213ec01fa2940abfd4650d9c4e78a3dafd7dec9 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. --- PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/Image.py b/PIL/Image.py index f9d90649b..a3a065937 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -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