Skip to content

Commit 9ec62df

Browse files
author
longendu
committed
remove dep on pytype
1 parent 6cb494a commit 9ec62df

File tree

4 files changed

+24
-193
lines changed

4 files changed

+24
-193
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- name: Lint with ruff
3333
run: |
3434
~/.local/bin/uv run ruff check aiutil/ tests/
35-
- name: Lint with pytype
36-
run: |
37-
~/.local/bin/uv run pytype ./
35+
#- name: Lint with pytype
36+
# run: |
37+
# ~/.local/bin/uv run pytype ./
3838
- name: Check code format
3939
run: |
4040
~/.local/bin/uv run ruff format --check .

aiutil/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _split_dir_1(
158158
path.rename(desdir / path.name)
159159

160160

161-
def find_images(root_dir: str | Path | list[str] | list[Path]) -> list[Path]:
161+
def find_images(root_dir: str | Path | list[str | Path]) -> list[Path]:
162162
"""Find all PNG images in a (sequence) of dir(s) or its/their subdirs.
163163
164164
:param root_dir: A (list) of dir(s).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ snb = "aiutil.notebook:search.main"
7575

7676
[dependency-groups]
7777
dev = [
78-
"pytype>=2024.10.11",
78+
"pyright>=1.1.402",
7979
"ruff>=0.11.8",
8080
"ty>=0.0.1a10",
8181
]

0 commit comments

Comments
 (0)