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")