Skip to content

Commit

Permalink
Update click.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-migas committed Jan 31, 2024
1 parent 13bee77 commit b2379b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/koyo/click.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ def expand_data_dirs(input_dir: str) -> ty.List[str]:
return [input_dir]


def parse_paths(input_dirs, absolute: bool = False, sort: bool = False) -> ty.List[str]:
def parse_paths(input_dirs: list[PathLike], absolute: bool = False, sort: bool = False) -> ty.List[str]:
"""Parse list/tuple of paths and check whether any of them have glob-like pattern."""
result = []
for path in input_dirs:
path = str(path)
# clean-up paths
if path.endswith("/"):
path = path[0:-1]
Expand Down

0 comments on commit b2379b9

Please sign in to comment.