diff options
Diffstat (limited to 'Lib/importlib/resources/_legacy.py')
-rw-r--r-- | Lib/importlib/resources/_legacy.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/importlib/resources/_legacy.py b/Lib/importlib/resources/_legacy.py index 1d5d3f1fbb1..b1ea8105dad 100644 --- a/Lib/importlib/resources/_legacy.py +++ b/Lib/importlib/resources/_legacy.py @@ -27,8 +27,7 @@ def deprecated(func): return wrapper -def normalize_path(path): - # type: (Any) -> str +def normalize_path(path: Any) -> str: """Normalize a path by ensuring it is a string. If the resulting string contains path separators, an exception is raised. |