Skip to content

fix(ci): add numpy to dependencies and pass typing checks #676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 30, 2025

Conversation

lemorage
Copy link
Contributor

This PR fixes the CI failure.

  1. The numpy dep is missing, after making sentence-transformers optional since Make sentence_transformers an optional dependency #674. Because sentence-transformers pulled in numpy as one of its dependencies, our code used numpy implicitly.
  2. The mypy type checks failed, cuz imports won't be found, after sentence-transformers is optional.

Copy link
Member

@badmonster0 badmonster0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this quick fix!

In NumPy release 1.23.2, Python 3.11 support was added. See https://github.com/numpy/numpy/releases/tag/v1.23.2.
@badmonster0 badmonster0 merged commit 8daa081 into cocoindex-io:main Jun 30, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants