From 7f18d6e1ebd4dbee012dcbdc2d29f2971460d4e2 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Thu, 31 Aug 2017 11:54:05 -0700 Subject: [PATCH] Type annotations: Image.py: Annotation for not-installed handler. --- PIL/Image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PIL/Image.py b/PIL/Image.py index 4f77f7fad..9a611499a 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -54,6 +54,7 @@ class DecompressionBombWarning(RuntimeWarning): class _imaging_not_installed(object): # module placeholder def __getattr__(self, id): + # type: (str) -> Any raise ImportError("The _imaging C module is not installed")