mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Reflect totality of sanitize_windows_path in return type
This commit is contained in:
parent
6d5d9333ad
commit
29cd5d1a3c
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user