diff options
| author | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-05 21:01:58 +0100 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2021-11-08 14:11:40 -0800 |
| commit | c0d881064f7c90f6a510db483990776ceb17b9bd (patch) | |
| tree | bbe635558a2bfb48fd64f24f48eea1c5b093a029 /gitlab/v4/objects/groups.py | |
| parent | 472b300154c5e59289d83f0b34d24bc52eb9b6da (diff) | |
| download | gitlab-c0d881064f7c90f6a510db483990776ceb17b9bd.tar.gz | |
refactor: use new-style formatting for named placeholders
Diffstat (limited to 'gitlab/v4/objects/groups.py')
| -rw-r--r-- | gitlab/v4/objects/groups.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/groups.py b/gitlab/v4/objects/groups.py index bdcb280..7016e52 100644 --- a/gitlab/v4/objects/groups.py +++ b/gitlab/v4/objects/groups.py @@ -336,7 +336,7 @@ class GroupSubgroup(RESTObject): class GroupSubgroupManager(ListMixin, RESTManager): - _path = "/groups/%(group_id)s/subgroups" + _path = "/groups/{group_id}/subgroups" _obj_cls: Union[Type["GroupDescendantGroup"], Type[GroupSubgroup]] = GroupSubgroup _from_parent_attrs = {"group_id": "id"} _list_filters = ( @@ -363,5 +363,5 @@ class GroupDescendantGroupManager(GroupSubgroupManager): share all attributes with subgroups, except the path and object class. """ - _path = "/groups/%(group_id)s/descendant_groups" + _path = "/groups/{group_id}/descendant_groups" _obj_cls: Type[GroupDescendantGroup] = GroupDescendantGroup |
