mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 15:44:46 +03:00
Type annotations: Enable Image.filter to also accept Callable returning Filter.
This commit is contained in:
parent
c2634c2640
commit
8856c4a9a6
|
@ -1166,7 +1166,7 @@ class Image(object):
|
|||
return self._new(self.im.expand(xmargin, ymargin, 0))
|
||||
|
||||
def filter(self, filter):
|
||||
# type: (Filter) -> Image
|
||||
# type: (Union[Filter, Callable[[], Filter]]) -> Image
|
||||
"""
|
||||
Filters this image using the given filter. For a list of
|
||||
available filters, see the :py:mod:`~PIL.ImageFilter` module.
|
||||
|
|
Loading…
Reference in New Issue
Block a user