mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-97930: Apply changes from importlib_resources 5.10. (GH-100598)
This commit is contained in:
parent
ba1342ce99
commit
447d061bc7
9 changed files with 268 additions and 90 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue