mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 12:59:07 +00:00
infra: add -p to mkdir in lint steps (#17013)
Previously, if this did not find a mypy cache then it wouldnt run this makes it always run adding mypy ignore comments with existing uncaught issues to unblock other prs --------- Co-authored-by: Erick Friis <erick@langchain.dev> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
@@ -78,7 +78,7 @@ class SpacyEmbeddings(BaseModel, Embeddings):
|
||||
Returns:
|
||||
A list of embeddings, one for each document.
|
||||
"""
|
||||
return [self.nlp(text).vector.tolist() for text in texts]
|
||||
return [self.nlp(text).vector.tolist() for text in texts] # type: ignore[misc]
|
||||
|
||||
def embed_query(self, text: str) -> List[float]:
|
||||
"""
|
||||
@@ -90,7 +90,7 @@ class SpacyEmbeddings(BaseModel, Embeddings):
|
||||
Returns:
|
||||
The embedding for the text.
|
||||
"""
|
||||
return self.nlp(text).vector.tolist()
|
||||
return self.nlp(text).vector.tolist() # type: ignore[misc]
|
||||
|
||||
async def aembed_documents(self, texts: List[str]) -> List[List[float]]:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user