Skip to content

Commit d46bf26

Browse files
ci: keep mypy dependency stubs Python 3.10-compatible
1 parent 4b07503 commit d46bf26

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
- name: Install
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install -e ".[dev,ml]"
28+
# mypy targets Python 3.10; NumPy 2.5+ stubs require Python 3.12.
29+
pip install -e ".[dev,ml]" "numpy<2.5"
2930
- name: Lint
3031
run: ruff check src tests
3132
- name: Typecheck

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
- name: Install
3434
run: |
3535
python -m pip install --upgrade pip
36-
pip install -e ".[dev,ml,docs]"
36+
# mypy targets Python 3.10; NumPy 2.5+ stubs require Python 3.12.
37+
pip install -e ".[dev,ml,docs]" "numpy<2.5"
3738
- name: Lint
3839
run: ruff check src tests
3940
- name: Typecheck

0 commit comments

Comments
 (0)