Skip to content

Commit a4e63fd

Browse files
committed
fix: omit numpy from mypy env (2.x stubs use py3.12 type syntax, incompatible with py3.9 mypy mode)
1 parent c83f992 commit a4e63fd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
with:
2626
python-version: "3.12"
2727
- name: Install linting tools
28-
run: pip install ruff mypy numpy
28+
# numpy is intentionally omitted: numpy 2.x stubs use `type` syntax
29+
# (Python 3.12+) which mypy rejects in py3.9 mode. --ignore-missing-imports
30+
# in pyproject.toml handles the missing stubs gracefully.
31+
run: pip install ruff mypy
2932
- name: Ruff lint
3033
run: ruff check python/
3134
- name: Ruff format check

0 commit comments

Comments
 (0)