@@ -93,7 +93,7 @@ def get(
93
93
**kwargs: Extra options to send to the server (e.g. sudo)
94
94
95
95
Returns:
96
- object: The generated RESTObject.
96
+ The generated RESTObject.
97
97
98
98
Raises:
99
99
GitlabAuthenticationError: If authentication is not correct
@@ -134,7 +134,7 @@ def get(
134
134
**kwargs: Extra options to send to the server (e.g. sudo)
135
135
136
136
Returns:
137
- object: The generated RESTObject
137
+ The generated RESTObject
138
138
139
139
Raises:
140
140
GitlabAuthenticationError: If authentication is not correct
@@ -207,7 +207,7 @@ def list(self, **kwargs: Any) -> Union[base.RESTObjectList, List[base.RESTObject
207
207
**kwargs: Extra options to send to the server (e.g. sudo)
208
208
209
209
Returns:
210
- list: The list of objects, or a generator if `as_list` is False
210
+ The list of objects, or a generator if `as_list` is False
211
211
212
212
Raises:
213
213
GitlabAuthenticationError: If authentication is not correct
@@ -287,7 +287,7 @@ def create(
287
287
**kwargs: Extra options to send to the server (e.g. sudo)
288
288
289
289
Returns:
290
- RESTObject: a new instance of the managed object class built with
290
+ A new instance of the managed object class built with
291
291
the data sent by the server
292
292
293
293
Raises:
@@ -357,7 +357,7 @@ def _get_update_method(
357
357
"""Return the HTTP method to use.
358
358
359
359
Returns:
360
- object: http_put (default) or http_post
360
+ http_put (default) or http_post
361
361
"""
362
362
if self ._update_uses_post :
363
363
http_method = self .gitlab .http_post
@@ -380,7 +380,7 @@ def update(
380
380
**kwargs: Extra options to send to the server (e.g. sudo)
381
381
382
382
Returns:
383
- dict: The new object data (*not* a RESTObject)
383
+ The new object data (*not* a RESTObject)
384
384
385
385
Raises:
386
386
GitlabAuthenticationError: If authentication is not correct
@@ -442,7 +442,7 @@ def set(self, key: str, value: str, **kwargs: Any) -> base.RESTObject:
442
442
GitlabSetError: If an error occurred
443
443
444
444
Returns:
445
- obj: The created/updated attribute
445
+ The created/updated attribute
446
446
"""
447
447
path = f"{ self .path } /{ utils .clean_str_id (key )} "
448
448
data = {"value" : value }
@@ -672,7 +672,7 @@ def download(
672
672
GitlabGetError: If the server failed to perform the request
673
673
674
674
Returns:
675
- str: The blob content if streamed is False, None otherwise
675
+ The blob content if streamed is False, None otherwise
676
676
"""
677
677
path = f"{ self .manager .path } /download"
678
678
result = self .manager .gitlab .http_get (
@@ -890,7 +890,7 @@ def participants(self, **kwargs: Any) -> Dict[str, Any]:
890
890
GitlabListError: If the list could not be retrieved
891
891
892
892
Returns:
893
- RESTObjectList: The list of participants
893
+ The list of participants
894
894
"""
895
895
896
896
path = f"{ self .manager .path } /{ self .get_id ()} /participants"
@@ -918,7 +918,7 @@ def render(self, link_url: str, image_url: str, **kwargs: Any) -> Dict[str, Any]
918
918
GitlabRenderError: If the rendering failed
919
919
920
920
Returns:
921
- dict: The rendering properties
921
+ The rendering properties
922
922
"""
923
923
path = f"{ self .path } /render"
924
924
data = {"link_url" : link_url , "image_url" : image_url }
@@ -943,7 +943,7 @@ def _get_update_method(
943
943
"""Return the HTTP method to use.
944
944
945
945
Returns:
946
- object: http_put (default) or http_post
946
+ http_put (default) or http_post
947
947
"""
948
948
if self ._update_uses_post :
949
949
http_method = self .manager .gitlab .http_post
@@ -964,7 +964,7 @@ def promote(self, **kwargs: Any) -> Dict[str, Any]:
964
964
GitlabParsingError: If the json data could not be parsed
965
965
966
966
Returns:
967
- dict: The updated object data (*not* a RESTObject)
967
+ The updated object data (*not* a RESTObject)
968
968
"""
969
969
970
970
path = f"{ self .manager .path } /{ self .id } /promote"
0 commit comments