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

View File

@ -130,7 +130,7 @@ def re_rename(regex: Regex, target: str) -> Transform:
return inner 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. A small function to escape characters that are forbidden in windows path names.
This method is a no-op on other operating systems. This method is a no-op on other operating systems.