Added type hint to example code

This commit is contained in:
Andrew Murray 2024-08-24 19:18:25 +10:00
parent e6e5ef5c5f
commit 6e9518b88d

View File

@ -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