Skip to content

chore(internal): codegen related update #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2025
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
144 changes: 144 additions & 0 deletions src/runloop_api_client/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ def _get_page_items(self) -> List[_T]:
return []
return blueprints

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
blueprints = self.blueprints
Expand All @@ -112,6 +120,14 @@ def _get_page_items(self) -> List[_T]:
return []
return blueprints

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
blueprints = self.blueprints
Expand All @@ -138,6 +154,14 @@ def _get_page_items(self) -> List[_T]:
return []
return devboxes

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
devboxes = self.devboxes
Expand All @@ -164,6 +188,14 @@ def _get_page_items(self) -> List[_T]:
return []
return devboxes

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
devboxes = self.devboxes
Expand All @@ -190,6 +222,14 @@ def _get_page_items(self) -> List[_T]:
return []
return repositories

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
repositories = self.repositories
Expand All @@ -216,6 +256,14 @@ def _get_page_items(self) -> List[_T]:
return []
return repositories

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
repositories = self.repositories
Expand All @@ -242,6 +290,14 @@ def _get_page_items(self) -> List[_T]:
return []
return snapshots

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
snapshots = self.snapshots
Expand All @@ -268,6 +324,14 @@ def _get_page_items(self) -> List[_T]:
return []
return snapshots

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
snapshots = self.snapshots
Expand All @@ -294,6 +358,14 @@ def _get_page_items(self) -> List[_T]:
return []
return benchmarks

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
benchmarks = self.benchmarks
Expand All @@ -320,6 +392,14 @@ def _get_page_items(self) -> List[_T]:
return []
return benchmarks

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
benchmarks = self.benchmarks
Expand All @@ -346,6 +426,14 @@ def _get_page_items(self) -> List[_T]:
return []
return runs

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
runs = self.runs
Expand All @@ -372,6 +460,14 @@ def _get_page_items(self) -> List[_T]:
return []
return runs

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
runs = self.runs
Expand All @@ -398,6 +494,14 @@ def _get_page_items(self) -> List[_T]:
return []
return scenarios

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
scenarios = self.scenarios
Expand All @@ -424,6 +528,14 @@ def _get_page_items(self) -> List[_T]:
return []
return scenarios

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
scenarios = self.scenarios
Expand All @@ -450,6 +562,14 @@ def _get_page_items(self) -> List[_T]:
return []
return runs

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
runs = self.runs
Expand All @@ -476,6 +596,14 @@ def _get_page_items(self) -> List[_T]:
return []
return runs

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
runs = self.runs
Expand All @@ -502,6 +630,14 @@ def _get_page_items(self) -> List[_T]:
return []
return scorers

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
scorers = self.scorers
Expand All @@ -528,6 +664,14 @@ def _get_page_items(self) -> List[_T]:
return []
return scorers

@override
def has_next_page(self) -> bool:
has_more = self.has_more
if has_more is not None and has_more is False:
return False

return super().has_next_page()

@override
def next_page_info(self) -> Optional[PageInfo]:
scorers = self.scorers
Expand Down