From a0666ccb7c91255dddef026c34eeb8bfdd72671d Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Wed, 3 Jan 2018 11:27:03 +0000 Subject: [PATCH] Typing: __array_interface__ --- src/PIL/Image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index c5d8ca143..5b38391f5 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -631,7 +631,7 @@ class Image(object): # type: (Optional[Text], Optional[Text], **Any) -> Text import tempfile - suffix = '' + suffix = '' # type: Text if format: suffix = '.'+format @@ -690,9 +690,9 @@ class Image(object): @property def __array_interface__(self): - # type: () -> Dict[Text, Any] + # type: () -> Dict[unicode, Any] # numpy array interface support - new = {} + new = {} # type: Dict[unicode, Any] shape, typestr = _conv_type_shape(self) new['shape'] = shape new['typestr'] = typestr