Reflect totality of sanitize_windows_path in return type

This commit is contained in:
I-Al-Istannen 2021-04-19 11:10:02 +02:00
parent 6d5d9333ad
commit 29cd5d1a3c
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def re_rename(regex: Regex, target: str) -> Transform:
return inner
def sanitize_windows_path(path: PurePath) -> Optional[PurePath]:
def sanitize_windows_path(path: PurePath) -> PurePath:
"""
A small function to escape characters that are forbidden in windows path names.
This method is a no-op on other operating systems.