Skip to content

Commit

Permalink
Remove unused type: ignore comments
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Dec 11, 2023
1 parent ea7273a commit 4f8c306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domdf_python_tools/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def is_mount(self) -> bool:

if sys.version_info < (3, 8): # pragma: no cover (py38+)

def rename(self: _P, target: Union[str, pathlib.PurePath]) -> _P: # type: ignore
def rename(self: _P, target: Union[str, pathlib.PurePath]) -> _P:
"""
Rename this path to the target path.
Expand All @@ -755,7 +755,7 @@ def rename(self: _P, target: Union[str, pathlib.PurePath]) -> _P: # type: ignor
os.rename(self, target)
return self.__class__(target)

def replace(self: _P, target: Union[str, pathlib.PurePath]) -> _P: # type: ignore
def replace(self: _P, target: Union[str, pathlib.PurePath]) -> _P:
"""
Rename this path to the target path, overwriting if that path exists.
Expand Down

0 comments on commit 4f8c306

Please sign in to comment.