8000 chore: fix rebase get method · python-gitlab/python-gitlab@195d6c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 195d6c0

Browse files
committed
chore: fix rebase get method
1 parent f1eb6f5 commit 195d6c0

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

gitlab/v4/objects/branches.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,12 @@ class ProjectProtectedBranchManager(CRUDMixin[ProjectProtectedBranch]):
5050
)
5151
_update_method = UpdateMethod.PATCH
5252

53-
def get(
54-
self, id: Union[str, int], lazy: bool = False, **kwargs: Any
55-
) -> ProjectProtectedBranch:
56-
return cast(ProjectProtectedBranch, super().get(id=id, lazy=lazy, **kwargs))
57-
5853

5954
class GroupProtectedBranch(SaveMixin, ObjectDeleteMixin, RESTObject):
6055
_id_attr = "name"
6156

6257

63-
class GroupProtectedBranchManager(CRUDMixin, RESTManager):
58+
class GroupProtectedBranchManager(CRUDMixin[GroupProtectedBranch]):
6459
_path = "/groups/{group_id}/protected_branches"
6560
_obj_cls = GroupProtectedBranch
6661
_from_parent_attrs = {"group_id": "id"}
@@ -78,8 +73,3 @@ class GroupProtectedBranchManager(CRUDMixin, RESTManager):
7873
),
7974
)
8075
_update_method = UpdateMethod.PATCH
81-
82-
def get(
83-
self, id: Union[str, int], lazy: bool = False, **kwargs: Any
84-
) -> GroupProtectedBranch:
85-
return cast(GroupProtectedBranch, super().get(id=id, lazy=lazy, **kwargs))

0 commit comments

Comments
 (0)
0