Skip to content

Commit fd9c24a

Browse files
committed
Apply lint
1 parent 9eeeab7 commit fd9c24a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

elasticsearch/helpers/vectorstore/_async/vectorstore.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ def __init__(
8383
# client.options preserves existing (non-user-agent) headers.
8484
client = client.options(headers={"User-Agent": user_agent})
8585

86-
if hasattr(retrieval_strategy, "text_field") and retrieval_strategy.text_field is None:
86+
if (
87+
hasattr(retrieval_strategy, "text_field")
88+
and retrieval_strategy.text_field is None
89+
):
8790
retrieval_strategy.text_field = text_field
8891

8992
self.client = client

elasticsearch/helpers/vectorstore/_sync/vectorstore.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ def __init__(
8080
# client.options preserves existing (non-user-agent) headers.
8181
client = client.options(headers={"User-Agent": user_agent})
8282

83-
if hasattr(retrieval_strategy, "text_field") and retrieval_strategy.text_field is None:
83+
if (
84+
hasattr(retrieval_strategy, "text_field")
85+
and retrieval_strategy.text_field is None
86+
):
8487
retrieval_strategy.text_field = text_field
8588

8689
self.client = client

0 commit comments

Comments
 (0)