mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
4f2e3bd7fd
## Description The existing public interface for `langchain_community.emeddings` is broken. In this file, `__all__` is statically defined, but is subsequently overwritten with a dynamic expression, which type checkers like pyright do not support. pyright actually gives the following diagnostic on the line I am requesting we remove: [reportUnsupportedDunderAll](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUnsupportedDunderAll): ``` Operation on "__all__" is not supported, so exported symbol list may be incorrect ``` Currently, I get the following errors when attempting to use publicablly exported classes in `langchain_community.emeddings`: ```python import langchain_community.embeddings langchain_community.embeddings.HuggingFaceEmbeddings(...) # error: "HuggingFaceEmbeddings" is not exported from module "langchain_community.embeddings" (reportPrivateImportUsage) ``` This is solved easily by removing the dynamic expression. |
||
---|---|---|
.. | ||
__init__.py | ||
test_awa.py | ||
test_azure_openai.py | ||
test_baichuan.py | ||
test_bookend.py | ||
test_cloudflare_workersai.py | ||
test_cohere.py | ||
test_dashscope.py | ||
test_deepinfra.py | ||
test_edenai.py | ||
test_elasticsearch.py | ||
test_embaas.py | ||
test_ernie.py | ||
test_fastembed.py | ||
test_google_palm.py | ||
test_huggingface_hub.py | ||
test_huggingface.py | ||
test_jina.py | ||
test_johnsnowlabs.py | ||
test_laser.py | ||
test_llamacpp.py | ||
test_modelscope_hub.py | ||
test_mosaicml.py | ||
test_octoai_embeddings.py | ||
test_openai.py | ||
test_premai.py | ||
test_qianfan_endpoint.py | ||
test_sambanova.py | ||
test_self_hosted.py | ||
test_sentence_transformer.py | ||
test_sparkllm.py | ||
test_tensorflow_hub.py | ||
test_titan_takeoff.py | ||
test_vertexai.py | ||
test_volcano.py | ||
test_voyageai.py | ||
test_xinference.py |