mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 07:04:45 +03:00
Type annotations: Correct Image/ImagingCore annotations.
This commit is contained in:
parent
2c76f3b843
commit
898c83d261
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user