Type annotations: Correct Image/ImagingCore annotations.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-19 13:07:42 -07:00 committed by Eric Soroos
parent 2c76f3b843
commit 898c83d261

View File

@ -567,7 +567,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
@ -1130,7 +1130,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.