Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/orb/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down