From ccbea3f59a1be418ea5adf90d25dbfb49f72dfde Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Tue, 22 Mar 2016 18:10:13 +0100 Subject: minor docs fixes --- gitlab/exceptions.py | 7 ++++--- gitlab/objects.py | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'gitlab') diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py index ce1f680..8190696 100644 --- a/gitlab/exceptions.py +++ b/gitlab/exceptions.py @@ -110,9 +110,10 @@ def raise_error_from_response(response, error, expected_code=200): If response status code is 401, raises instead GitlabAuthenticationError. - response: requests response object - error: Error-class or dict {return-code => class} of possible error class - to raise. Should be inherited from GitLabError + Args: + response: requests response object + error: Error-class or dict {return-code => class} of possible error + class to raise. Should be inherited from GitLabError """ if expected_code == response.status_code: diff --git a/gitlab/objects.py b/gitlab/objects.py index 3b8a467..56cec38 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1569,7 +1569,7 @@ class ProjectManager(BaseManager): **kwargs: Additional arguments to send to GitLab. Returns: - list(Project): A list of matching projects. + list(gitlab.Gitlab.Project): A list of matching projects. """ return self.gitlab._raw_list("/projects/search/" + query, Project, **kwargs) @@ -1582,7 +1582,7 @@ class ProjectManager(BaseManager): **kwargs: Additional arguments to send to GitLab. Returns: - list(Project): The list of projects. + list(gitlab.Gitlab.Project): The list of projects. """ return self.gitlab._raw_list("/projects/all", Project, **kwargs) @@ -1594,7 +1594,7 @@ class ProjectManager(BaseManager): **kwargs: Additional arguments to send to GitLab. Returns: - list(Project): The list of owned projects. + list(gitlab.Gitlab.Project): The list of owned projects. """ return self.gitlab._raw_list("/projects/owned", Project, **kwargs) -- cgit v1.2.1