chroma-core/chroma

[Bug]: type errors in chromadb/utils/embedding_functions.py

Aperta

#1169 aperta il 21 set 2023

 (5 commenti) (0 reazioni) (1 assegnatario)Rust (2247 fork)batch import
bugby-chromagood first issue

Metriche repository

Star
 (27.958 stelle)
Metriche merge PR
 (Merge medio 1g 16h) (80 PR mergiate in 30 g)

Descrizione

What happened?

mypy complains about type errors in chromadb/utils/embedding_functions.py, specifically with some __call__ and _normalize methods. See some of the #type: ignores in https://github.com/chroma-core/chroma/pull/1163 for specifics.

It's worth figuring out the correct type annotations for these methods and the methods they call into so that our type checking works as intended.

Versions

Chroma latest, python 3.9.6, macOS

Relevant log output

No response

Guida contributor