我有一个函数,取3 arguments
,然后返回一个图像,我想知道它返回的是python type hint.
以下是我的功能:
from PIL import Image
def modify_image(img_path: str, width: int, height: int) -> "what here?":
"""Read and return a resized image"""
image = Image.open(img_path)
modified_image = image.resize((width, height))
return modified_image