(self: SyncPageT)
| 269 | return |
| 270 | |
| 271 | def get_next_page(self: SyncPageT) -> SyncPageT: |
| 272 | info = self.next_page_info() |
| 273 | if not info: |
| 274 | raise RuntimeError( |
| 275 | "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`." |
| 276 | ) |
| 277 | |
| 278 | options = self._info_to_options(info) |
| 279 | return self._client._request_api_list(self._model, page=self.__class__, options=options) |
| 280 | |
| 281 | |
| 282 | class AsyncPaginator(Generic[_T, AsyncPageT]): |
no test coverage detected