@@ -133,7 +133,7 @@ def aiter(x: Union[Iterable[T], AsyncIterable[T]]) -> AsyncIterator[T]:
133133 if hasattr (x , "__anext__" ):
134134 return x # type: ignore[return-value]
135135 elif hasattr (x , "__aiter__" ):
136- return x .__aiter__ () # type: ignore[union-attr]
136+ return x .__aiter__ ()
137137
138138 async def f () -> AsyncIterable [T ]:
139139 nonlocal x
@@ -176,7 +176,6 @@ async def async_streaming_bulk(
176176 * args : Any ,
177177 ** kwargs : Any ,
178178) -> AsyncIterable [Tuple [bool , Dict [str , Any ]]]:
179-
180179 """
181180 Streaming bulk consumes actions from the iterable passed in and yields
182181 results per action. For non-streaming usecases use
@@ -230,7 +229,6 @@ async def map_actions() -> AsyncIterable[_TYPE_BULK_ACTION_HEADER_AND_BODY]:
230229 async for bulk_data , bulk_actions in _chunk_actions (
231230 map_actions (), chunk_size , max_chunk_bytes , serializer
232231 ):
233-
234232 for attempt in range (max_retries + 1 ):
235233 to_retry : List [bytes ] = []
236234 to_retry_data : List [
@@ -264,7 +262,6 @@ async def map_actions() -> AsyncIterable[_TYPE_BULK_ACTION_HEADER_AND_BODY]:
264262 ** kwargs ,
265263 ),
266264 ):
267-
268265 if not ok :
269266 action , info = info .popitem ()
270267 # retry if retries enabled, we get 429, and we are not
@@ -509,7 +506,6 @@ async def async_reindex(
509506 scan_kwargs : MutableMapping [str , Any ] = {},
510507 bulk_kwargs : MutableMapping [str , Any ] = {},
511508) -> Tuple [int , Union [int , List [Any ]]]:
512-
513509 """
514510 Reindex all documents from one index that satisfy a given query
515511 to another, potentially (if `target_client` is specified) on a different cluster.
0 commit comments