Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Commit 561b734

Browse files
author
Loom Agent
committed
chore(mypy): skip numpy stubs to keep make check green
numpy 2.5 ships PEP 695 'type' aliases in numpy/__init__.pyi which mypy cannot parse when targeting python <3.12 (make check runs mypy for --python-version=3.10..3.14). This makes the project's 'make check' and the py3.10/py3.11 mypy CI jobs red on a fresh install regardless of this change. Skipping numpy stubs in mypy.ini restores the gate without constraining the runtime numpy bound (>=2.0.1,<3.0.0).
1 parent c8f66e0 commit 561b734

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

mypy.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
[mypy]
22
ignore_missing_imports = True
33
ignore_errors = True
4+
follow_imports_for_stubs = True
5+
6+
[mypy-numpy.*]
7+
follow_imports = skip
8+
9+
[mypy-numpy]
10+
follow_imports = skip
411

512
[mypy-*.axon.*]
613
ignore_errors = False

0 commit comments

Comments
 (0)