mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
25fbe356b4
This PR upgrades community to a recent version of mypy. It inserts type: ignore on all existing failures.
8 lines
340 B
Python
8 lines
340 B
Python
from langchain_community.embeddings.huggingface import HuggingFaceInferenceAPIEmbeddings
|
|
|
|
|
|
def test_hugginggface_inferenceapi_embedding_documents_init() -> None:
|
|
"""Test huggingface embeddings."""
|
|
embedding = HuggingFaceInferenceAPIEmbeddings(api_key="abcd123") # type: ignore[arg-type]
|
|
assert "abcd123" not in repr(embedding)
|