(self: AsyncPageT)
| 342 | return |
| 343 | |
| 344 | async def get_next_page(self: AsyncPageT) -> AsyncPageT: |
| 345 | info = self.next_page_info() |
| 346 | if not info: |
| 347 | raise RuntimeError( |
| 348 | "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`." |
| 349 | ) |
| 350 | |
| 351 | options = self._info_to_options(info) |
| 352 | return await self._client._request_api_list(self._model, page=self.__class__, options=options) |
| 353 | |
| 354 | |
| 355 | _HttpxClientT = TypeVar("_HttpxClientT", bound=Union[httpx.Client, httpx.AsyncClient]) |
nothing calls this directly
no test coverage detected