mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 15:44:46 +03:00
Type annotations: Mark Image.draft to accept (Mode, Size).
This commit is contained in:
parent
dfce721538
commit
af87bfe1ef
|
@ -1135,8 +1135,8 @@ class Image(object):
|
|||
return im.crop((x0, y0, x1, y1))
|
||||
|
||||
def draft(self, mode, size):
|
||||
# type: (Any, Any) -> Any
|
||||
# TODO unclear types
|
||||
# type: (Mode, Size) -> Any
|
||||
# TODO: return type clarification
|
||||
"""
|
||||
Configures the image file loader so it returns a version of the
|
||||
image that as closely as possible matches the given mode and
|
||||
|
|
Loading…
Reference in New Issue
Block a user