Type annotations: Mark Image.draft to accept (Mode, Size).

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-18 22:02:29 -07:00 committed by Eric Soroos
parent 0b005596b1
commit 9625b7957e

View File

@ -1153,8 +1153,8 @@ class Image(object):
return im.crop((x0, y0, x1, y1))
def draft(self, mode, size):
# type: (Any, Any) -> Any
# TODO unclear types
# type: (Mode, Size) -> Any
# TODO: return type clarification
"""
Configures the image file loader so it returns a version of the
image that as closely as possible matches the given mode and