From 9625b7957e392b791fe672526a74b4d412aa895a Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Fri, 18 Aug 2017 22:02:29 -0700 Subject: [PATCH] Type annotations: Mark Image.draft to accept (Mode, Size). --- src/PIL/Image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 9db52ec6c..cacedf4f5 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -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