| 1 | import sys |
| 2 | from typing_extensions import deprecated |
| 3 | |
| 4 | if sys.version_info >= (3, 14): |
| 5 | @deprecated("The `nturl2path` module is deprecated since Python 3.14.") |
| 6 | def url2pathname(url: str) -> str: ... |
| 7 | @deprecated("The `nturl2path` module is deprecated since Python 3.14.") |
| 8 | def pathname2url(p: str) -> str: ... |
| 9 | |
| 10 | else: |
| 11 | def url2pathname(url: str) -> str: ... |
| 12 | def pathname2url(p: str) -> str: ... |