Replies: 2 comments 6 replies
-
How would you expect this to be surfaced in the API? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Return an object that has a |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I'm calling
getiter
on a paginated API, it only provides a lazy iterator over the results. However, I need to know the total number of results in advance, and GitHub provides it in the response -total_count
, just that the response is completely locked away from the user, unless they call_make_request
directly like sohttps://github.com/brettcannon/gidgethub/blob/3b8941a0ccdad007db09dd601963ce989d64074f/gidgethub/abc.py#L148-L150
(
getitem
also discards that info).Example of this elsewhere: https://pygithub.readthedocs.io/en/latest/utilities.html?highlight=totalCount#github.PaginatedList.PaginatedList
Beta Was this translation helpful? Give feedback.
All reactions