Skip to content

Commit

Permalink
refactor: remove default in delete_existing_files()
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jan 2, 2024
1 parent 36a4061 commit 586cc24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
HEADER = f"# This file is generated by `{cli_name}`."


def delete_existing_files(root="."):
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
Expand All @@ -30,7 +30,7 @@ def delete_existing_files(root="."):
Parameters
----------
root : str
The path to the root of the directory tree to search for files to delete.
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):
for fn in filter(
Expand Down

0 comments on commit 586cc24

Please sign in to comment.