Skip to content

Commit

Permalink
Add type hint
Browse files Browse the repository at this point in the history
Co-authored-by: kvid <[email protected]>
  • Loading branch information
2 people authored and laurierloi committed Jan 19, 2023
1 parent a9c1724 commit ea89dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wireviz/wv_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ea89dd4

Please sign in to comment.