From 5a994e2174f50c0e2ec8b109e306f001440f5517 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Fri, 29 Nov 2024 18:55:52 +0000 Subject: [PATCH] chore(internal): codegen related update --- src/orb/pagination.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/orb/pagination.py b/src/orb/pagination.py index df68690f..61cc363c 100644 --- a/src/orb/pagination.py +++ b/src/orb/pagination.py @@ -32,7 +32,8 @@ def _get_page_items(self) -> List[_T]: def next_page_info(self) -> Optional[PageInfo]: next_cursor = None if self.pagination_metadata is not None: # pyright: ignore[reportUnnecessaryComparison] - next_cursor = self.pagination_metadata.next_cursor + if self.pagination_metadata.next_cursor is not None: + next_cursor = self.pagination_metadata.next_cursor if not next_cursor: return None @@ -54,7 +55,8 @@ def _get_page_items(self) -> List[_T]: def next_page_info(self) -> Optional[PageInfo]: next_cursor = None if self.pagination_metadata is not None: # pyright: ignore[reportUnnecessaryComparison] - next_cursor = self.pagination_metadata.next_cursor + if self.pagination_metadata.next_cursor is not None: + next_cursor = self.pagination_metadata.next_cursor if not next_cursor: return None