From 46cb90f5685f90deafeec7e7ddae593d92ee353d Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Tue, 22 Aug 2017 12:35:07 -0700 Subject: [PATCH] Type annotations: Image.py: Correct _conv_type_shape & add _MODE_CONV. --- 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 b9b0dc63e..9fe356dad 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -295,11 +295,11 @@ _MODE_CONV = { "I;32S": ('i4', None), "I;32LS": (' Tuple[Size, Tuple[Text, Optional[int]]] # NOTE: Size inverted compared to normal + # type: (Image) -> Tuple[Union[Size, Tuple[int, int, int]], Text] # NOTE: Size inverted compared to normal typ, extra = _MODE_CONV[im.mode] if extra is None: return (im.size[1], im.size[0]), typ