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 committed by Laurier Loiselle
parent a9c1724dcb
commit ea89dd4fe0
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

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():