Skip to content

Commit 66bb490

Browse files
Merge pull request #1491 from datajoint/fix/mypy-numpy-pep695
ci(pre-commit): pin numpy<2.2 for mypy stub compatibility
2 parents d9106a6 + d2cc991 commit 66bb490

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ repos:
4545
- types-PyMySQL
4646
- types-tqdm
4747
- pandas-stubs
48-
- numpy
48+
# numpy>=2.2 stubs use PEP 695 `type` statements, which mypy rejects
49+
# when type-checking against python_version 3.10 (the project floor).
50+
- numpy<2.2

0 commit comments

Comments
 (0)