FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Deprecate `nturl2path` by donbarbos · Pull Request #14065 · python/typeshed · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pyi  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
14 changes: 12 additions & 2 deletions stdlib/nturl2path.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
def url2pathname(url: str) -> str: ...
def pathname2url(p: str) -> str: ...
import sys
from typing_extensions import deprecated

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

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

Back | FazBrowse Home | New Git URL