From 4a30b7af6926818923644b86ddba31dda6ece224 Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Fri, 5 Jan 2018 14:30:27 +0000 Subject: [PATCH] Typing: Ignore forcibly setting things to errors --- 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 4985f623b..2c306ba0d 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -82,7 +82,7 @@ try: PILLOW_VERSION)) except ImportError as v: - core = _imaging_not_installed() + core = _imaging_not_installed() # type: ignore # Explanations for ways that we know we might have an import error if str(v).startswith("Module use of python"): # The _imaging C module is present, but not compiled for @@ -613,7 +613,7 @@ class Image(object): # Instead of simply setting to None, we're setting up a # deferred error that will better explain that the core image # object is gone. - self.im = deferred_error(ValueError("Operation on closed image")) + self.im = deferred_error(ValueError("Operation on closed image")) # type: ignore def _copy(self): # type: () -> None