gh-97930: Apply changes from importlib_resources 5.10. (GH-100598)

This commit is contained in:
Jason R. Coombs 2023-01-01 11:07:32 -05:00 committed by GitHub
parent ba1342ce99
commit 447d061bc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 268 additions and 90 deletions

View file

@ -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.