From 1e29eef1f47498a4381b995133a0852624c9ee77 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Thu, 17 Aug 2017 22:23:34 -0700 Subject: [PATCH] Type annotations: Adjust Filter import. --- PIL/Image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index 18d762e10..b30565cf1 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -40,7 +40,7 @@ if False: from io import BytesIO import pathlib import ImagingPalette - from ImageFilter import Filter + from . import ImageFilter from ImageFile import PyDecoder from ImageFile import PyEncoder @@ -1171,7 +1171,7 @@ class Image(object): return self._new(self.im.expand(xmargin, ymargin, 0)) def filter(self, filter): - # type: (Filter) -> Image + # type: (ImageFilter.Filter) -> Image """ Filters this image using the given filter. For a list of available filters, see the :py:mod:`~PIL.ImageFilter` module.