Skip to content

Commit af14df0

Browse files
committed
updates
1 parent 69b62f1 commit af14df0

File tree

2 files changed

+6
-6
lines changed
  • sdk/search/azure-search-documents/azure/search/documents

2 files changed

+6
-6
lines changed

sdk/search/azure-search-documents/azure/search/documents/_operations/_patch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import itertools
1414
import json
1515

16-
from azure.core.paging import ItemPaged, PageIterator
16+
from azure.core.paging import ItemPaged, PageIterator, ReturnType
1717
from azure.core.tracing.decorator import distributed_trace
1818

1919
from ._operations import _SearchClientOperationsMixin as _SearchClientOperationsMixinGenerated
@@ -306,7 +306,7 @@ def get_debug_info(self) -> Optional[_models.DebugInfo]:
306306
return response.debug_info
307307

308308

309-
class SearchItemPaged(ItemPaged[Dict]):
309+
class SearchItemPaged(ItemPaged[ReturnType]):
310310
"""A pageable list of search results with metadata accessors."""
311311

312312
def __init__(self, page_iterator_factory_func) -> None:
@@ -327,7 +327,7 @@ def by_page(self, continuation_token=None):
327327
"""
328328
return self._page_iterator_factory(continuation_token)
329329

330-
def __next__(self) -> Dict:
330+
def __next__(self) -> ReturnType:
331331
if self._page_iterator is None:
332332
first_iterator = self._first_iterator_instance()
333333
self._page_iterator = itertools.chain.from_iterable(first_iterator)

sdk/search/azure-search-documents/azure/search/documents/aio/_operations/_patch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010
from typing import Any, Dict, List, Optional, Union, cast
1111

12-
from azure.core.async_paging import AsyncItemPaged, AsyncPageIterator
12+
from azure.core.async_paging import AsyncItemPaged, AsyncPageIterator, ReturnType
1313
from azure.core.tracing.decorator_async import distributed_trace_async
1414

1515
from ._operations import _SearchClientOperationsMixin as _SearchClientOperationsMixinGenerated
@@ -107,7 +107,7 @@ async def get_debug_info(self) -> Optional[_models.DebugInfo]:
107107
return response.debug_info
108108

109109

110-
class AsyncSearchItemPaged(AsyncItemPaged[Dict]):
110+
class AsyncSearchItemPaged(AsyncItemPaged[ReturnType]):
111111
"""An async pageable list of search results with metadata accessors."""
112112

113113
def __init__(self, page_iterator_factory_func) -> None:
@@ -128,7 +128,7 @@ def by_page(self, continuation_token=None):
128128
"""
129129
return self._page_iterator_factory(continuation_token)
130130

131-
async def __anext__(self) -> Dict:
131+
async def __anext__(self) -> ReturnType:
132132
if self._page_iterator is None:
133133
self._page_iterator = self.by_page()
134134
if self._page is None:

0 commit comments

Comments
 (0)