-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add pagination to GET Package
endpoint
#284
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will cause the response model of the endpoint to change, right? have you made sure that bot will not break because of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
8dbc693
to
05f537e
Compare
35dbbf1
to
174b8cf
Compare
Co-authored-by: jonathan-d-zhang <[email protected]> Signed-off-by: Bruno Rodrigues dos Santos <[email protected]>
2fca8ce
to
deba694
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty much exactly what i was going for, thanks!
Signed-off-by: Bruno Rodrigues dos Santos <[email protected]>
Pyright can't infer that lookup_package_info returns a Page if `page` and `size` are passed in, and returns a Sequence otherwise. Using an isinstance check instead of checking `page` and `size` gets us partway, however the generic type information for Page[T] is lost within this type guard, so we must still ignore type checking a bit to prevent "varaiable is of unknown type" errors.
Closes #91