From 95cf0a6e9f0d06e51fb91c917970c4a2cab066ec Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Fri, 5 Jan 2018 12:51:44 +0000 Subject: [PATCH] Typing: additional imports --- src/PIL/Image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index bd7ffdf09..4c2f8da32 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -36,7 +36,9 @@ if False: from .ImageFile import PyDecoder PyEncoder = Any ## FIXME TYPING: PyEncoder is not defined anywhere? Needs stub/class? from ._imaging import ImagingCore - from . import PyAccess + from . import PyAccess, ImageFile + + from PyQt5.QtGui import QImage, QPixmap from . import VERSION, PILLOW_VERSION, _plugins