Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DosticJelena committed Sep 22, 2023
1 parent 324eb0f commit 40738fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions llama_index/vector_stores/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
"""
Expand Down

0 comments on commit 40738fd

Please sign in to comment.