From 960f20e6efb383d5a4851af37437b5191d3f1a6c Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Tue, 28 Sep 2021 20:29:12 +0200 Subject: [PATCH] Add type hint Co-authored-by: kvid --- src/wireviz/wv_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/wv_helper.py b/src/wireviz/wv_helper.py index d5d6456..8c40c19 100644 --- a/src/wireviz/wv_helper.py +++ b/src/wireviz/wv_helper.py @@ -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():