From 97ed1ba3bb020b075b9366dbd5e44d6659522ae9 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 15 May 2024 08:49:40 -0500 Subject: [PATCH] fix: fix type hints for delete_existing_files() (#96) --- .../_rapids_dependency_file_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py b/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py index 672131d..02f48fc 100644 --- a/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py +++ b/src/rapids_dependency_file_generator/_rapids_dependency_file_generator.py @@ -18,7 +18,7 @@ HEADER = f"# This file is generated by `{cli_name}`." -def delete_existing_files(root: os.PathLike) -> None: +def delete_existing_files(root: str) -> None: """Delete any files generated by this generator. This function can be used to clean up a directory tree before generating a new set @@ -26,7 +26,7 @@ def delete_existing_files(root: os.PathLike) -> None: Parameters ---------- - root : PathLike + root : str The path (relative or absolute) to the root of the directory tree to search for files to delete. """ for dirpath, _, filenames in os.walk(root):