From c23c755acc5e5dfcea20c1f5ee188a197a3b763f 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. --- src/PIL/Image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 4f8c4ab9c..3683adcd8 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -56,6 +56,7 @@ class DecompressionBombError(Exception): class _imaging_not_installed(object): # module placeholder def __getattr__(self, id): + # type: (str) -> Any raise ImportError("The _imaging C module is not installed")