Add type hint
Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
parent
95defd07c0
commit
960f20e6ef
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user