From 40738fd38e41f0e4209ce58abeef92e81508b2b1 Mon Sep 17 00:00:00 2001 From: DosticJelena Date: Fri, 22 Sep 2023 11:45:40 +0200 Subject: [PATCH] fix linter errors --- llama_index/vector_stores/pinecone.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llama_index/vector_stores/pinecone.py b/llama_index/vector_stores/pinecone.py index 437aa29929e7bf..0be8f123fa2125 100644 --- a/llama_index/vector_stores/pinecone.py +++ b/llama_index/vector_stores/pinecone.py @@ -265,9 +265,7 @@ def add( vectors=batch, async_req=True, ) - for batch in iter_batch( - entries, self.batch_size - ) + for batch in iter_batch(entries, self.batch_size) ] return ids @@ -284,7 +282,7 @@ async def async_add( Returns: List[str]: List of IDs of the added documents. """ - return await asyncio.to_thread(self.add, nodes) # type: ignore + return await asyncio.to_thread(self.add, nodes) # type: ignore def delete(self, ref_doc_id: str, **delete_kwargs: Any) -> None: """