@@ -30,9 +30,7 @@ async def delete(
30
30
* ,
31
31
id : str ,
32
32
error_trace : t .Optional [bool ] = None ,
33
- filter_path : t .Optional [
34
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
35
- ] = None ,
33
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
36
34
human : t .Optional [bool ] = None ,
37
35
pretty : t .Optional [bool ] = None ,
38
36
) -> ObjectApiResponse [t .Any ]:
@@ -67,9 +65,7 @@ async def get(
67
65
* ,
68
66
id : str ,
69
67
error_trace : t .Optional [bool ] = None ,
70
- filter_path : t .Optional [
71
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
72
- ] = None ,
68
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
73
69
human : t .Optional [bool ] = None ,
74
70
keep_alive : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
75
71
pretty : t .Optional [bool ] = None ,
@@ -129,9 +125,7 @@ async def status(
129
125
* ,
130
126
id : str ,
131
127
error_trace : t .Optional [bool ] = None ,
132
- filter_path : t .Optional [
133
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
134
- ] = None ,
128
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
135
129
human : t .Optional [bool ] = None ,
136
130
pretty : t .Optional [bool ] = None ,
137
131
) -> ObjectApiResponse [t .Any ]:
@@ -172,7 +166,7 @@ async def status(
172
166
async def submit (
173
167
self ,
174
168
* ,
175
- index : t .Optional [t .Union [str , t .Union [ t . List [ str ], t . Tuple [ str , ...] ]]] = None ,
169
+ index : t .Optional [t .Union [str , t .Sequence [ str ]]] = None ,
176
170
aggregations : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
177
171
aggs : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
178
172
allow_no_indices : t .Optional [bool ] = None ,
@@ -184,53 +178,30 @@ async def submit(
184
178
collapse : t .Optional [t .Mapping [str , t .Any ]] = None ,
185
179
default_operator : t .Optional [t .Union ["t.Literal['and', 'or']" , str ]] = None ,
186
180
df : t .Optional [str ] = None ,
187
- docvalue_fields : t .Optional [
188
- t .Union [t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]]
189
- ] = None ,
181
+ docvalue_fields : t .Optional [t .Sequence [t .Mapping [str , t .Any ]]] = None ,
190
182
error_trace : t .Optional [bool ] = None ,
191
183
expand_wildcards : t .Optional [
192
184
t .Union [
193
- t .Union ["t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str ],
194
- t .Union [
195
- t .List [
196
- t .Union [
197
- "t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str
198
- ]
199
- ],
200
- t .Tuple [
201
- t .Union [
202
- "t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str
203
- ],
204
- ...,
205
- ],
185
+ t .Sequence [
186
+ t .Union ["t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str ]
206
187
],
188
+ t .Union ["t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str ],
207
189
]
208
190
] = None ,
209
191
explain : t .Optional [bool ] = None ,
210
192
ext : t .Optional [t .Mapping [str , t .Any ]] = None ,
211
- fields : t .Optional [
212
- t .Union [t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]]
213
- ] = None ,
214
- filter_path : t .Optional [
215
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
216
- ] = None ,
193
+ fields : t .Optional [t .Sequence [t .Mapping [str , t .Any ]]] = None ,
194
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
217
195
from_ : t .Optional [int ] = None ,
218
196
highlight : t .Optional [t .Mapping [str , t .Any ]] = None ,
219
197
human : t .Optional [bool ] = None ,
220
198
ignore_throttled : t .Optional [bool ] = None ,
221
199
ignore_unavailable : t .Optional [bool ] = None ,
222
- indices_boost : t .Optional [
223
- t .Union [t .List [t .Mapping [str , float ]], t .Tuple [t .Mapping [str , float ], ...]]
224
- ] = None ,
200
+ indices_boost : t .Optional [t .Sequence [t .Mapping [str , float ]]] = None ,
225
201
keep_alive : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
226
202
keep_on_completion : t .Optional [bool ] = None ,
227
203
knn : t .Optional [
228
- t .Union [
229
- t .Mapping [str , t .Any ],
230
- t .Union [
231
- t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]
232
- ],
233
- ]
204
+ t .Union [t .Mapping [str , t .Any ], t .Sequence [t .Mapping [str , t .Any ]]]
234
205
] = None ,
235
206
lenient : t .Optional [bool ] = None ,
236
207
max_concurrent_shard_requests : t .Optional [int ] = None ,
@@ -246,23 +217,15 @@ async def submit(
246
217
query : t .Optional [t .Mapping [str , t .Any ]] = None ,
247
218
request_cache : t .Optional [bool ] = None ,
248
219
rescore : t .Optional [
249
- t .Union [
250
- t .Mapping [str , t .Any ],
251
- t .Union [
252
- t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]
253
- ],
254
- ]
220
+ t .Union [t .Mapping [str , t .Any ], t .Sequence [t .Mapping [str , t .Any ]]]
255
221
] = None ,
256
222
rest_total_hits_as_int : t .Optional [bool ] = None ,
257
223
routing : t .Optional [str ] = None ,
258
224
runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
259
225
script_fields : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
260
226
scroll : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
261
227
search_after : t .Optional [
262
- t .Union [
263
- t .List [t .Union [None , bool , float , int , str , t .Any ]],
264
- t .Tuple [t .Union [None , bool , float , int , str , t .Any ], ...],
265
- ]
228
+ t .Sequence [t .Union [None , bool , float , int , str , t .Any ]]
266
229
] = None ,
267
230
search_type : t .Optional [
268
231
t .Union ["t.Literal['dfs_query_then_fetch', 'query_then_fetch']" , str ]
@@ -272,24 +235,15 @@ async def submit(
272
235
slice : t .Optional [t .Mapping [str , t .Any ]] = None ,
273
236
sort : t .Optional [
274
237
t .Union [
238
+ t .Sequence [t .Union [str , t .Mapping [str , t .Any ]]],
275
239
t .Union [str , t .Mapping [str , t .Any ]],
276
- t .Union [
277
- t .List [t .Union [str , t .Mapping [str , t .Any ]]],
278
- t .Tuple [t .Union [str , t .Mapping [str , t .Any ]], ...],
279
- ],
280
240
]
281
241
] = None ,
282
242
source : t .Optional [t .Union [bool , t .Mapping [str , t .Any ]]] = None ,
283
- source_excludes : t .Optional [
284
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
285
- ] = None ,
286
- source_includes : t .Optional [
287
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
288
- ] = None ,
289
- stats : t .Optional [t .Union [t .List [str ], t .Tuple [str , ...]]] = None ,
290
- stored_fields : t .Optional [
291
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
292
- ] = None ,
243
+ source_excludes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
244
+ source_includes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
245
+ stats : t .Optional [t .Sequence [str ]] = None ,
246
+ stored_fields : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
293
247
suggest : t .Optional [t .Mapping [str , t .Any ]] = None ,
294
248
suggest_field : t .Optional [str ] = None ,
295
249
suggest_mode : t .Optional [
0 commit comments