Skip to content

Commit 165b861

Browse files
Auto-generated API code (elastic#2203)
1 parent 8013821 commit 165b861

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

elasticsearch/_async/client/async_search.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,14 @@ async def submit(
216216
] = None,
217217
keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
218218
keep_on_completion: t.Optional[bool] = None,
219-
knn: t.Optional[t.Mapping[str, t.Any]] = None,
219+
knn: t.Optional[
220+
t.Union[
221+
t.Mapping[str, t.Any],
222+
t.Union[
223+
t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
224+
],
225+
]
226+
] = None,
220227
lenient: t.Optional[bool] = None,
221228
max_concurrent_shard_requests: t.Optional[int] = None,
222229
min_compatible_shard_node: t.Optional[str] = None,

elasticsearch/_sync/client/async_search.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,14 @@ def submit(
216216
] = None,
217217
keep_alive: t.Optional[t.Union["t.Literal[-1]", "t.Literal[0]", str]] = None,
218218
keep_on_completion: t.Optional[bool] = None,
219-
knn: t.Optional[t.Mapping[str, t.Any]] = None,
219+
knn: t.Optional[
220+
t.Union[
221+
t.Mapping[str, t.Any],
222+
t.Union[
223+
t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
224+
],
225+
]
226+
] = None,
220227
lenient: t.Optional[bool] = None,
221228
max_concurrent_shard_requests: t.Optional[int] = None,
222229
min_compatible_shard_node: t.Optional[str] = None,

0 commit comments

Comments
 (0)