Fix formatting
- ID
19e5352- date
2025-03-05 21:52:34+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
376bfac- message
Fix formatting- changed files
1 file, 4 additions, 2 deletions
Changed files
expansions/get_file_paths.py (695) → expansions/get_file_paths.py (697)
diff --git a/expansions/get_file_paths.py b/expansions/get_file_paths.py
index 4efd3fa..aaf82c2 100644
--- a/expansions/get_file_paths.py
+++ b/expansions/get_file_paths.py
@@ -2,12 +2,14 @@ from collections.abc import Iterator
from pathlib import Path
-def get_file_paths_under(root: Path | str = Path("."), *, suffix: str = "") -> Iterator[Path]:
+def get_file_paths_under(
+ root: Path | str = Path("."), *, suffix: str = ""
+) -> Iterator[Path]:
"""
Generates the absolute paths to every matching file under ``root``.
"""
root = Path(root)
-
+
if root.exists() and not root.is_dir():
raise ValueError(f"Cannot find files under non-directory: {root!r}")