Skip to content

Commit

Permalink
Update file_io.py (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ authored Apr 21, 2023
1 parent fa57efd commit e0f6107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zntrack/utils/file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def write_file(file: pathlib.Path, value: dict, mkdir: bool = True):
raise ValueError(f"File with suffix {file.suffix} is not supported")


def clear_config_file(file: pathlib.Path | str, node_name: str):
def clear_config_file(file: typing.Union[pathlib.Path, str], node_name: str):
"""Clear the entries in the files for the given node name.
Parameters
Expand Down

0 comments on commit e0f6107

Please sign in to comment.