Type annotations: Correct Image/ImagingCore annotations.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-19 13:07:42 -07:00
parent e868aa9354
commit 65fb9d8080

View File

@ -553,7 +553,7 @@ class Image(object):
return self.size[1]
def _new(self, im):
# type: (Image) -> Image
# type: (ImagingCore) -> Image
new = Image()
new.im = im
new.mode = im.mode
@ -1112,7 +1112,7 @@ class Image(object):
return self._new(self._crop(self.im, box))
def _crop(self, im, box):
# type: (ImagingCore, LURD) -> Image
# type: (ImagingCore, LURD) -> ImagingCore
"""
Returns a rectangular region from the core image object im.