Skip to main content

Convert this to a Path

ID
64ce0ad
date
2025-02-06 18:45:30+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
2d6bdeb
message
Convert this to a `Path`
changed files
1 file, 3 additions, 3 deletions

Changed files

expansions/get_file_paths.py (682) → expansions/get_file_paths.py (668)

diff --git a/expansions/get_file_paths.py b/expansions/get_file_paths.py
index 4465743..ffbf2b6 100644
--- a/expansions/get_file_paths.py
+++ b/expansions/get_file_paths.py
@@ -1,10 +1,10 @@
 from collections.abc import Iterator
-import pathlib
+from pathlib import Path
 
 
 def get_file_paths_under(
-    root: pathlib.Path = pathlib.Path("."), *, suffix: str = ""
-) -> Iterator[pathlib.Path]:
+    root: Path = Path("."), *, suffix: str = ""
+) -> Iterator[Path]:
     """
     Generates the absolute paths to every matching file under ``root``.
     """