From 29cd5d1a3c4cab259636d6ab1e42f38c7a718792 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Mon, 19 Apr 2021 11:10:02 +0200 Subject: [PATCH] Reflect totality of sanitize_windows_path in return type --- PFERD/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PFERD/transform.py b/PFERD/transform.py index 7a05dd1..a2152ba 100644 --- a/PFERD/transform.py +++ b/PFERD/transform.py @@ -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.