From af87bfe1eff74d980cb5fa06cb654455909fee42 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). --- PIL/Image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index 5abdad1e1..464437fed 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -1135,8 +1135,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