Skip to content

Commit

Permalink
fix: fix type hints for delete_existing_files() (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored May 15, 2024
1 parent 6b0247a commit 97ed1ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
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
of files from scratch.
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):
Expand Down

0 comments on commit 97ed1ba

Please sign in to comment.