Skip to content

Commit ccbea3f

Browse files
author
Gauvain Pocentek
committed
minor docs fixes
1 parent 43e8a2a commit ccbea3f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

gitlab/exceptions.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ def raise_error_from_response(response, error, expected_code=200):
110110
111111
If response status code is 401, raises instead GitlabAuthenticationError.
112112
113-
response: requests response object
114-
error: Error-class or dict {return-code => class} of possible error class
115-
to raise. Should be inherited from GitLabError
113+
Args:
114+
response: requests response object
115+
error: Error-class or dict {return-code => class} of possible error
116+
class to raise. Should be inherited from GitLabError
116117
"""
117118

118119
if expected_code == response.status_code:

gitlab/objects.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ def search(self, query, **kwargs):
15691569
**kwargs: Additional arguments to send to GitLab.
15701570
15711571
Returns:
1572-
list(Project): A list of matching projects.
1572+
list(gitlab.Gitlab.Project): A list of matching projects.
15731573
"""
15741574
return self.gitlab._raw_list("/projects/search/" + query, Project,
15751575
**kwargs)
@@ -1582,7 +1582,7 @@ def all(self, **kwargs):
15821582
**kwargs: Additional arguments to send to GitLab.
15831583
15841584
Returns:
1585-
list(Project): The list of projects.
1585+
list(gitlab.Gitlab.Project): The list of projects.
15861586
"""
15871587
return self.gitlab._raw_list("/projects/all", Project, **kwargs)
15881588

@@ -1594,7 +1594,7 @@ def owned(self, **kwargs):
15941594
**kwargs: Additional arguments to send to GitLab.
15951595
15961596
Returns:
1597-
list(Project): The list of owned projects.
1597+
list(gitlab.Gitlab.Project): The list of owned projects.
15981598
"""
15991599
return self.gitlab._raw_list("/projects/owned", Project, **kwargs)
16001600

0 commit comments

Comments
 (0)