Skip to content

Commit 6c0a3d9

Browse files
author
Gauvain Pocentek
committed
Fix tuples definition
1 parent 68c09b7 commit 6c0a3d9

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

gitlab/objects.py

+21-13
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ class User(GitlabObject):
591591
'confirm', 'external']
592592
managers = (
593593
('emails', UserEmailManager, [('user_id', 'id')]),
594-
('keys', UserKeyManager, [('user_id', 'id')])
594+
('keys', UserKeyManager, [('user_id', 'id')]),
595595
)
596596

597597
def _data_for_gitlab(self, extra_parameters={}, update=False,
@@ -699,7 +699,7 @@ class CurrentUser(GitlabObject):
699699
shortPrintAttr = 'username'
700700
managers = (
701701
('emails', CurrentUserEmailManager, [('user_id', 'id')]),
702-
('keys', CurrentUserKeyManager, [('user_id', 'id')])
702+
('keys', CurrentUserKeyManager, [('user_id', 'id')]),
703703
)
704704

705705

@@ -880,7 +880,7 @@ class Group(GitlabObject):
880880
('notificationsettings', GroupNotificationSettingsManager,
881881
[('group_id', 'id')]),
882882
('projects', GroupProjectManager, [('group_id', 'id')]),
883-
('issues', GroupIssueManager, [('group_id', 'id')])
883+
('issues', GroupIssueManager, [('group_id', 'id')]),
884884
)
885885

886886
GUEST_ACCESS = gitlab.GUEST_ACCESS
@@ -1001,8 +1001,10 @@ class ProjectBoard(GitlabObject):
10011001
canUpdate = False
10021002
canCreate = False
10031003
canDelete = False
1004-
managers = (('lists', ProjectBoardListManager,
1005-
[('project_id', 'project_id'), ('board_id', 'id')]))
1004+
managers = (
1005+
('lists', ProjectBoardListManager,
1006+
[('project_id', 'project_id'), ('board_id', 'id')]),
1007+
)
10061008

10071009

10081010
class ProjectBoardManager(BaseManager):
@@ -1179,7 +1181,7 @@ class ProjectCommit(GitlabObject):
11791181
('comments', ProjectCommitCommentManager,
11801182
[('project_id', 'project_id'), ('commit_id', 'id')]),
11811183
('statuses', ProjectCommitStatusManager,
1182-
[('project_id', 'project_id'), ('commit_id', 'id')])
1184+
[('project_id', 'project_id'), ('commit_id', 'id')]),
11831185
)
11841186

11851187
def diff(self, **kwargs):
@@ -1344,8 +1346,10 @@ class ProjectIssue(GitlabObject):
13441346
'milestone_id', 'labels', 'created_at',
13451347
'state_event']
13461348
shortPrintAttr = 'title'
1347-
managers = (('notes', ProjectIssueNoteManager,
1348-
[('project_id', 'project_id'), ('issue_id', 'id')]))
1349+
managers = (
1350+
('notes', ProjectIssueNoteManager,
1351+
[('project_id', 'project_id'), ('issue_id', 'id')]),
1352+
)
13491353

13501354
def _data_for_gitlab(self, extra_parameters={}, update=False,
13511355
as_json=True):
@@ -1527,8 +1531,10 @@ class ProjectMergeRequest(GitlabObject):
15271531
'milestone_id']
15281532
optionalListAttrs = ['iid', 'state', 'order_by', 'sort']
15291533

1530-
managers = (('notes', ProjectMergeRequestNoteManager,
1531-
[('project_id', 'project_id'), ('merge_request_id', 'id')]))
1534+
managers = (
1535+
('notes', ProjectMergeRequestNoteManager,
1536+
[('project_id', 'project_id'), ('merge_request_id', 'id')]),
1537+
)
15321538

15331539
def _data_for_gitlab(self, extra_parameters={}, update=False,
15341540
as_json=True):
@@ -1836,8 +1842,10 @@ class ProjectSnippet(GitlabObject):
18361842
optionalCreateAttrs = ['lifetime', 'visibility_level']
18371843
optionalUpdateAttrs = ['title', 'file_name', 'code', 'visibility_level']
18381844
shortPrintAttr = 'title'
1839-
managers = (('notes', ProjectSnippetNoteManager,
1840-
[('project_id', 'project_id'), ('snippet_id', 'id')]))
1845+
managers = (
1846+
('notes', ProjectSnippetNoteManager,
1847+
[('project_id', 'project_id'), ('snippet_id', 'id')]),
1848+
)
18411849

18421850
def Content(self, **kwargs):
18431851
warnings.warn("`Content` is deprecated, use `content` instead",
@@ -2542,7 +2550,7 @@ class Team(GitlabObject):
25422550
canUpdate = False
25432551
managers = (
25442552
('members', TeamMemberManager, [('team_id', 'id')]),
2545-
('projects', TeamProjectManager, [('team_id', 'id')])
2553+
('projects', TeamProjectManager, [('team_id', 'id')]),
25462554
)
25472555

25482556

0 commit comments

Comments
 (0)