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