Skip to content

Commit c73b83a

Browse files
committed
ci: skip numpy in mypy to fix upstream stub-syntax breakage (numpy 2.5.0)
numpy 2.5.0 ships inline stubs using the 3.12 'type X = ...' statement, which mypy can't parse under python_version 3.11, aborting the Typecheck job on the first checked dir. vstack has no direct numpy dependency, so add a mypy override that skips following numpy entirely. All 27 CI mypy dirs pass locally with the override.
1 parent 0a2bf12 commit c73b83a

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ thirty-six library modules and fifty CLIs shipped since v0.7.0.
3939
to exercise `setup_otel` but called `_otel_check_available`) with real
4040
`setup_otel` / `is_enabled` coverage that does not pollute global OTel
4141
state.
42+
- **CI mypy failure from upstream numpy churn** — numpy 2.5.0 (a transitive
43+
dep of some framework extras) ships inline stubs using the 3.12
44+
`type X = ...` statement, which mypy can't parse under `python_version
45+
3.11` ("Type statement is only supported in Python 3.12 and greater").
46+
Added a `[[tool.mypy.overrides]]` entry that skips following numpy, since
47+
vstack has no direct numpy dependency.
48+
- **Docs build (strict mkdocs) had been failing since v0.36.0** — the
49+
LangChain integration page linked `../composition.md#langchain`, but the
50+
file lives at `concepts/composition.md`. Fixed the link so the hosted
51+
docs site can deploy again.
4252

4353
### Changed
4454

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,16 @@ strict = true
300300
warn_return_any = true
301301
warn_unused_configs = true
302302

303+
# numpy (a transitive dep of some optional framework extras) ships inline
304+
# stubs that use the 3.12 `type X = ...` statement. Because we type-check
305+
# against python_version 3.11, mypy can't parse those stubs and aborts
306+
# ("Type statement is only supported in Python 3.12 and greater"). vstack
307+
# does not depend on numpy directly, so skip following it entirely.
308+
[[tool.mypy.overrides]]
309+
module = ["numpy", "numpy.*"]
310+
follow_imports = "skip"
311+
follow_imports_for_stubs = true
312+
303313
[tool.pytest.ini_options]
304314
minversion = "8.0"
305315
testpaths = [

0 commit comments

Comments
 (0)