diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-24 01:36:48 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-24 01:36:48 +0100 |
commit | 81a392ca6e9b44444c0f1287139abe788d50119d (patch) | |
tree | 97e0f03be6f8819cb9b8a5dd0d46432ff6dfc5a4 /gitlab/v4/objects/issues.py | |
parent | 7ba5995ed472997e6bf98e8ae58107af307a5615 (diff) | |
download | gitlab-chore/sphinx-annotations.tar.gz |
chore: deduplicate type annotations in docschore/sphinx-annotations
Diffstat (limited to 'gitlab/v4/objects/issues.py')
-rw-r--r-- | gitlab/v4/objects/issues.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gitlab/v4/objects/issues.py b/gitlab/v4/objects/issues.py index 8cd2317..c615144 100644 --- a/gitlab/v4/objects/issues.py +++ b/gitlab/v4/objects/issues.py @@ -152,7 +152,7 @@ class ProjectIssue( GitlabGetErrot: If the merge requests could not be retrieved Returns: - list: The list of merge requests. + The list of merge requests. """ path = f"{self.manager.path}/{self.get_id()}/related_merge_requests" result = self.manager.gitlab.http_get(path, **kwargs) @@ -165,15 +165,15 @@ class ProjectIssue( def closed_by(self, **kwargs: Any) -> Dict[str, Any]: """List merge requests that will close the issue when merged. - Args: - **kwargs: Extra options to send to the server (e.g. sudo) + Args: + **kwargs: Extra options to send to the server (e.g. sudo) - Raises: - GitlabAuthenticationError: If authentication is not correct - GitlabGetErrot: If the merge requests could not be retrieved + Raises: + GitlabAuthenticationError: If authentication is not correct + GitlabGetErrot: If the merge requests could not be retrieved - Returns: - list: The list of merge requests. + Returns: + The list of merge requests. """ path = f"{self.manager.path}/{self.get_id()}/closed_by" result = self.manager.gitlab.http_get(path, **kwargs) @@ -260,12 +260,12 @@ class ProjectIssueLinkManager(ListMixin, CreateMixin, DeleteMixin, RESTManager): """Create a new object. Args: - data (dict): parameters to send to the server to create the + data: parameters to send to the server to create the resource **kwargs: Extra options to send to the server (e.g. sudo) Returns: - RESTObject, RESTObject: The source and target issues + The source and target issues Raises: GitlabAuthenticationError: If authentication is not correct |