mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 15:14:45 +03:00
Type annotations: Adjust Filter import.
This commit is contained in:
parent
43b704b7df
commit
bd4e593682
|
@ -40,7 +40,7 @@ if False:
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import pathlib
|
import pathlib
|
||||||
import ImagingPalette
|
import ImagingPalette
|
||||||
from ImageFilter import Filter
|
from . import ImageFilter
|
||||||
from ImageFile import PyDecoder
|
from ImageFile import PyDecoder
|
||||||
from ImageFile import PyEncoder
|
from ImageFile import PyEncoder
|
||||||
|
|
||||||
|
@ -1189,7 +1189,7 @@ class Image(object):
|
||||||
return self._new(self.im.expand(xmargin, ymargin, 0))
|
return self._new(self.im.expand(xmargin, ymargin, 0))
|
||||||
|
|
||||||
def filter(self, filter):
|
def filter(self, filter):
|
||||||
# type: (Filter) -> Image
|
# type: (ImageFilter.Filter) -> Image
|
||||||
"""
|
"""
|
||||||
Filters this image using the given filter. For a list of
|
Filters this image using the given filter. For a list of
|
||||||
available filters, see the :py:mod:`~PIL.ImageFilter` module.
|
available filters, see the :py:mod:`~PIL.ImageFilter` module.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user