mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 05:52:15 +00:00
partners[lint]: run pyupgrade
to get code in line with 3.9 standards (#30781)
Using `pyupgrade` to get all `partners` code up to 3.9 standards (mostly, fixing old `typing` imports).
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from typing import Any, List, Optional, Sequence
|
||||
from collections.abc import Sequence
|
||||
from typing import Any, Optional
|
||||
|
||||
from langchain_qdrant.sparse_embeddings import SparseEmbeddings, SparseVector
|
||||
|
||||
@@ -56,7 +57,7 @@ class FastEmbedSparse(SparseEmbeddings):
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
def embed_documents(self, texts: List[str]) -> List[SparseVector]:
|
||||
def embed_documents(self, texts: list[str]) -> list[SparseVector]:
|
||||
results = self._model.embed(
|
||||
texts, batch_size=self._batch_size, parallel=self._parallel
|
||||
)
|
||||
|
Reference in New Issue
Block a user