We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nturl2path
1 parent 51db405 commit 590f483Copy full SHA for 590f483
stdlib/nturl2path.pyi
@@ -1,2 +1,12 @@
1
-def url2pathname(url: str) -> str: ...
2
-def pathname2url(p: str) -> str: ...
+import sys
+from typing_extensions import deprecated
3
+
4
+if sys.version_info >= (3, 14):
5
+ @deprecated("nturl2path module was deprecated since Python 3.14")
6
+ def url2pathname(url: str) -> str: ...
7
8
+ def pathname2url(p: str) -> str: ...
9
10
+else:
11
12
0 commit comments