mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Added type hint to example code
This commit is contained in:
parent
e6e5ef5c5f
commit
6e9518b88d
|
@ -1917,7 +1917,7 @@ class Image:
|
||||||
object::
|
object::
|
||||||
|
|
||||||
class Example(Image.ImagePointHandler):
|
class Example(Image.ImagePointHandler):
|
||||||
def point(self, data):
|
def point(self, im: Image) -> Image:
|
||||||
# Return result
|
# Return result
|
||||||
:param mode: Output mode (default is same as input). This can only be used if
|
:param mode: Output mode (default is same as input). This can only be used if
|
||||||
the source image has mode "L" or "P", and the output has mode "1" or the
|
the source image has mode "L" or "P", and the output has mode "1" or the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user