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