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