Type annotations: Image.py: Annotation for not-installed handler.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-31 11:54:05 -07:00 committed by Eric Soroos
parent d6f89c103c
commit c23c755acc

View File

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