| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* Add type-hints to gitlab/v4/objects/merge_requests.py * Add return value to cancel_merge_when_pipeline_succeeds() function as GitLab docs show it returns a value. * Add return value to approve() function as GitLab docs show it returns a value. * Add 'get()' method so that type-checkers will understand that getting a project merge request is of type ProjectMergeRequest.
Codecov Report❌ Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #1673 +/- ##
==========================================
- Coverage 91.99% 91.96% -0.04%
==========================================
Files 75 75
Lines 4337 4345 +8
==========================================
+ Hits 3990 3996 +6
- Misses 347 349 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sorry, something went wrong.
| def get( | ||
| self, id: Union[str, int], lazy: bool = False, **kwargs: Any | ||
| ) -> ProjectMergeRequest: | ||
| return cast(ProjectMergeRequest, super().get(id=id, lazy=lazy, **kwargs)) |
There was a problem hiding this comment.
Maybe for a follow-up it'd be good to document this in the Development docs so we can point people to this in case they are adding new managers and get hit by mypy errors?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
as GitLab docs show it returns a value.
returns a value.
getting a project merge request is of type ProjectMergeRequest.