summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/features.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-11-24 01:36:48 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-11-24 01:36:48 +0100
commit81a392ca6e9b44444c0f1287139abe788d50119d (patch)
tree97e0f03be6f8819cb9b8a5dd0d46432ff6dfc5a4 /gitlab/v4/objects/features.py
parent7ba5995ed472997e6bf98e8ae58107af307a5615 (diff)
downloadgitlab-chore/sphinx-annotations.tar.gz
chore: deduplicate type annotations in docschore/sphinx-annotations
Diffstat (limited to 'gitlab/v4/objects/features.py')
-rw-r--r--gitlab/v4/objects/features.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/gitlab/v4/objects/features.py b/gitlab/v4/objects/features.py
index 4aaa185..80b0cd6 100644
--- a/gitlab/v4/objects/features.py
+++ b/gitlab/v4/objects/features.py
@@ -37,12 +37,12 @@ class FeatureManager(ListMixin, DeleteMixin, RESTManager):
"""Create or update the object.
Args:
- name (str): The value to set for the object
+ name: The value to set for the object
value (bool/int): The value to set for the object
- feature_group (str): A feature group name
- user (str): A GitLab username
- group (str): A GitLab group
- project (str): A GitLab project in form group/project
+ feature_group: A feature group name
+ user: A GitLab username
+ group: A GitLab group
+ project: A GitLab project in form group/project
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -50,7 +50,7 @@ class FeatureManager(ListMixin, DeleteMixin, RESTManager):
GitlabSetError: If an error occurred
Returns:
- obj: The created/updated attribute
+ The created/updated attribute
"""
path = f"{self.path}/{name.replace('/', '%2F')}"
data = {