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