File: nturl2path.pyi

package info (click to toggle)
typeshed 0.0~git20260204.516eed0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,220 kB
  • sloc: python: 9,096; makefile: 21; sh: 18
file content (12 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
import sys
from typing_extensions import deprecated

if sys.version_info >= (3, 14):
    @deprecated("The `nturl2path` module is deprecated since Python 3.14.")
    def url2pathname(url: str) -> str: ...
    @deprecated("The `nturl2path` module is deprecated since Python 3.14.")
    def pathname2url(p: str) -> str: ...

else:
    def url2pathname(url: str) -> str: ...
    def pathname2url(p: str) -> str: ...