Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
odysseaskr committed Nov 21, 2024
1 parent 59c3c3d commit 787bbf6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rapidchecker/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
from pathlib import Path


def expand_filepaths(paths: list[Path | str]) -> Iterable[Path]:
for path in paths:
path = Path(path)
def expand_filepaths(paths: list[str]) -> Iterable[Path]:
for path_str in paths:
path = Path(path_str)
if path.is_dir():
yield from get_sys_files(path)
else:
yield path


def get_sys_files(path: str | Path) -> Iterable[Path]:
path = Path(path)
def get_sys_files(path: Path) -> Iterable[Path]:
if path.suffix == ".sys":
return [path]
return path.glob("**/*.sys")
Expand Down

0 comments on commit 787bbf6

Please sign in to comment.