Skip to content

fix: typing issues#76

Merged
stephantul merged 1 commit intomainfrom
typing-things
Apr 13, 2026
Merged

fix: typing issues#76
stephantul merged 1 commit intomainfrom
typing-things

Conversation

@stephantul
Copy link
Copy Markdown
Contributor

Followup of #75. I found some small typing issues, nothing major. I also found a bug in loading from HF

if vector_store is not None:
if isinstance(vector_store.vectors, np.ndarray):
vectors: list[list[float]] = vector_store.vectors.tolist()
else:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

vectors was possibly unbound.

@stephantul stephantul requested a review from Pringled April 12, 2026 18:53
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 12, 2026

Codecov Report

❌ Patch coverage is 98.36066% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
vicinity/backends/__init__.py 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
vicinity/backends/annoy.py 95.18% <100.00%> (ø)
vicinity/backends/base.py 85.50% <100.00%> (ø)
vicinity/backends/basic.py 84.78% <100.00%> (+0.11%) ⬆️
vicinity/backends/faiss.py 90.00% <100.00%> (+0.25%) ⬆️
vicinity/backends/hnsw.py 95.52% <100.00%> (+0.13%) ⬆️
vicinity/backends/pynndescent.py 95.52% <100.00%> (ø)
vicinity/backends/usearch.py 97.18% <100.00%> (+0.26%) ⬆️
vicinity/backends/voyager.py 96.92% <100.00%> (+0.14%) ⬆️
vicinity/vicinity.py 95.42% <100.00%> (-3.13%) ⬇️
vicinity/backends/__init__.py 88.09% <0.00%> (-11.91%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephantul stephantul merged commit ac7cdfc into main Apr 13, 2026
4 checks passed
@stephantul stephantul deleted the typing-things branch April 13, 2026 07:14
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.

3 participants