Skip to content

Commit acc3f92

Browse files
committed
Fix api_key docstring in async case too (#2487)
1 parent 2719642 commit acc3f92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ class AsyncElasticsearch(BaseClient):
122122
# Set 'api_key' on the constructor
123123
client = Elasticsearch(
124124
"http://localhost:9200",
125-
api_key=("id", "api_key")
125+
api_key="api_key",
126126
)
127127
client.search(...)
128128
129129
# Set 'api_key' per request
130-
client.options(api_key=("id", "api_key")).search(...)
130+
client.options(api_key="api_key").search(...)
131131
"""
132132

133133
def __init__(

0 commit comments

Comments
 (0)