You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong return type annotation in ProjectCommit.refs() #1805
Thanks for the report @robertschweizer. Looking at the endpoint, the method currently used is wrong anyway, because we might get a paginated response so we should be doing an http_list() instead. So we should revamp this a little.
We probably also have the same issue with ProjectCommit.diff() and ProjectCommit.merge_requests() at least for typing, and not sure about pagination yet as it is not documented upstream.
Activity
nejch commentedon Jan 5, 2022
Thanks for the report @robertschweizer. Looking at the endpoint, the method currently used is wrong anyway, because we might get a paginated response so we should be doing an
http_list()instead. So we should revamp this a little.nejch commentedon Jan 5, 2022
We probably also have the same issue with
ProjectCommit.diff()andProjectCommit.merge_requests()at least for typing, and not sure about pagination yet as it is not documented upstream.JohnVillalovos commentedon Jan 5, 2022
Ah. I had assumed every API call returned a
Dict[str, Any]. Okay will need to change things to handle this. Thanks for the report!chore: fix type-hints for ProjectCommit methods
chore: fix type-hints for ProjectCommit methods
fix: change to `http_list` for some ProjectCommit methods