Repository navigation
chore(deps): allow numpy 2 on Python 3.12+ and disable numpy updates for older Pythons - #816
Merged
Merged
Conversation
…for older Pythons
dishaprakash
approved these changes
Oct 22, 2026
anubhav756
approved these changes
Oct 23, 2026
twishabansal
enabled auto-merge (squash)
October 26, 2026 05:26
This was referenced Oct 23, 2026
This was referenced Nov 13, 2026
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #813 and #815. Same approach as googleapis/llama-index-cloud-sql-pg-python#227.
numpy 2.x stubs use the Python 3.12
typestatement. With[tool.mypy] python_version = "3.10", mypy fails onnumpy/__init__.pyi:Type statement is only supported in Python 3.12 and greater.numpy<2on Python < 3.12,numpy<3on Python >= 3.12.python_version = "3.10"(still catches 3.11+-only code). Anumpy.*override setsfollow_imports = "skip"andfollow_imports_for_stubs = true, so mypy does not parse numpy's stubs. The second flag is required because numpy ships.pyistubs.<2constraint.Verified locally with numpy 2.5.4 and
MYPYPATH=./src(as CI does):mypy -p toolbox_adkpasses; without the override it reproduces the CI error.