Skip to content

Commit c83f992

Browse files
committed
fix: mypy -- ignore numpy 2.x stubs (type syntax requires py3.12, we target py3.9)
1 parent a803c6a commit c83f992

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ warn_return_any = true
116116
warn_unused_configs = true
117117
ignore_missing_imports = true
118118

119+
# numpy 2.x stubs use `type` statement (Python 3.12+ syntax); ignore stub
120+
# errors from third-party packages so mypy only checks our own code.
121+
[[tool.mypy.overrides]]
122+
module = ["numpy", "numpy.*"]
123+
ignore_errors = true
124+
119125
[tool.ruff]
120126
line-length = 120
121127
target-version = "py39"

0 commit comments

Comments
 (0)