Add type hint

Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
Daniel Rojas 2021-09-28 20:29:12 +02:00
parent 95defd07c0
commit 960f20e6ef

View File

@ -137,7 +137,7 @@ def aspect_ratio(image_src):
return 1 # Assume 1:1 when unable to read actual image size
def smart_file_resolve(filename, possible_paths):
def smart_file_resolve(filename: str, possible_paths: List[str]) -> Path:
filename = Path(filename)
if filename.is_absolute():
if filename.exists():