Skip to content

Commit a1171e6

Browse files
committed
style: wrap long line in write_documents_async (E501)
1 parent 19dec4e commit a1171e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • integrations/opensearch/src/haystack_integrations/document_stores/opensearch

integrations/opensearch/src/haystack_integrations/document_stores/opensearch/document_store.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,9 @@ async def write_documents_async(
526526
"""
527527
await self._ensure_initialized_async()
528528
assert self._async_client is not None
529-
bulk_params = self._prepare_bulk_write_request(documents=documents, policy=policy, is_async=True, refresh=refresh)
529+
bulk_params = self._prepare_bulk_write_request(
530+
documents=documents, policy=policy, is_async=True, refresh=refresh
531+
)
530532
documents_written, errors = await async_bulk(**bulk_params)
531533
# since we call async_bulk with stats_only=False, errors is guaranteed to be a list (not int)
532534
OpenSearchDocumentStore._process_bulk_write_errors(errors=errors, policy=policy) # type: ignore[arg-type]

0 commit comments

Comments
 (0)