Skip to content

Commit b1c34e1

Browse files
[pre-commit.ci] pre-commit autoupdate (#4063)
<!--pre-commit.ci start--> updates: - [github.com/tox-dev/pyproject-fmt: v2.29.0 → v2.29.3](tox-dev/pyproject-fmt@v2.29.0...v2.29.3) - [github.com/astral-sh/ruff-pre-commit: v0.16.5 → v0.16.6](astral-sh/ruff-pre-commit@v0.16.5...v0.16.6) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
1 parent 6485a01 commit b1c34e1

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ repos:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.4"]
1717
- repo: https://github.com/tox-dev/pyproject-fmt
18-
rev: "v2.29.0"
18+
rev: "v2.29.3"
1919
hooks:
2020
- id: pyproject-fmt
2121
- repo: https://github.com/abravalheri/validate-pyproject
2222
rev: "0.26"
2323
hooks:
2424
- id: validate-pyproject
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.16.5"
26+
rev: "v0.16.6"
2727
hooks:
2828
- id: ruff-check
2929
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]

typestubs/nturl2path.pyi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import sys
2+
3+
from typing_extensions import deprecated
4+
5+
# urllib.request re-exports these on Windows before 3.14; typeshed deprecates those aliases too.
6+
if sys.version_info >= (3, 14):
7+
@deprecated("Use urllib.request.url2pathname")
8+
def url2pathname(url: str) -> str: ...
9+
@deprecated("Use urllib.request.pathname2url")
10+
def pathname2url(p: str) -> str: ...
11+
12+
else:
13+
def url2pathname(url: str) -> str: ...
14+
def pathname2url(p: str) -> str: ...

0 commit comments

Comments
 (0)