summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/boards.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-06-13 14:40:46 -0700
committerJohn L. Villalovos <john@sodarock.com>2021-09-08 07:18:48 -0700
commitd8de4dc373dc608be6cf6ba14a2acc7efd3fa7a7 (patch)
treed587e4cb383b136cd9947377e43bd52900121994 /gitlab/v4/objects/boards.py
parentc9b5d3bac8f7c1f779dd57653f718dd0fac4db4b (diff)
downloadgitlab-d8de4dc373dc608be6cf6ba14a2acc7efd3fa7a7.tar.gz
chore: convert to using type-annotations for managers
Convert our manager usage to be done via type annotations. Now to define a manager to be used in a RESTObject subclass can simply do: class ExampleClass(CRUDMixin, RESTObject): my_manager: MyManager Any type-annotation that annotates it to be of type *Manager (with the exception of RESTManager) will cause the manager to be created on the object.
Diffstat (limited to 'gitlab/v4/objects/boards.py')
-rw-r--r--gitlab/v4/objects/boards.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/gitlab/v4/objects/boards.py b/gitlab/v4/objects/boards.py
index ef8d040..8b2959d 100644
--- a/gitlab/v4/objects/boards.py
+++ b/gitlab/v4/objects/boards.py
@@ -27,7 +27,6 @@ class GroupBoardListManager(CRUDMixin, RESTManager):
class GroupBoard(SaveMixin, ObjectDeleteMixin, RESTObject):
lists: GroupBoardListManager
- _managers = (("lists", "GroupBoardListManager"),)
class GroupBoardManager(CRUDMixin, RESTManager):
@@ -51,7 +50,6 @@ class ProjectBoardListManager(CRUDMixin, RESTManager):
class ProjectBoard(SaveMixin, ObjectDeleteMixin, RESTObject):
lists: ProjectBoardListManager
- _managers = (("lists", "ProjectBoardListManager"),)
class ProjectBoardManager(CRUDMixin, RESTManager):