Skip to content

Commit

Permalink
Fix usage.md next_from_response
Browse files Browse the repository at this point in the history
  • Loading branch information
foarsitter committed May 23, 2024
1 parent ed7720b commit 5e6bdee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class MyPaginatedRequest(IteratorRequestModel[PaginatedMyResponse]):

next: Optional[str] = None # will be used to paginate

def next(self, response: PaginatedMyResponse) -> bool:
def next_from_response(self, response: PaginatedMyResponse) -> bool:
# update the new request arguments
self.next = response.next
return self.next is not None
Expand Down

0 comments on commit 5e6bdee

Please sign in to comment.