Skip to content

Commit 8c3f574

Browse files
authored
typesafety: add thorough typechecks to UPath interface (#414)
* typesafety: add extensive type checks for UPath and implementations * upath: add basic PathInfo implementation for UPath * upath.types: adjust PathLike types * upath.types._abc: stricter types for pathlib_abc base types * upath.core: fix type annotations * upath.implementations: fix type annotations * upath.implementations.local: fix annotations and backport methods * upath.extensions: fix method signatures and types * typesafety: adjust JoinablePath tests * upath.types: do not register pathlib_abc ABCs on python 3.14
1 parent 0716d42 commit 8c3f574

File tree

5 files changed

+1093
-8
lines changed

5 files changed

+1093
-8
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
fetch-depth: 0
6969

70-
- name: Set up Python ${{ matrix.pyv }}
70+
- name: Set up Python
7171
uses: actions/setup-python@v5
7272
with:
7373
python-version: '3.10'
@@ -90,7 +90,7 @@ jobs:
9090
with:
9191
fetch-depth: 0
9292

93-
- name: Set up Python ${{ matrix.pyv }}
93+
- name: Set up Python
9494
uses: actions/setup-python@v5
9595
with:
9696
python-version: '3.10'

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def typesafety(session):
115115
"--mypy-pyproject-toml-file",
116116
"pyproject.toml",
117117
"typesafety",
118+
*session.posargs,
118119
)
119120

120121

0 commit comments

Comments
 (0)