Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit062f8f6

Browse files
fix: argument type was not a tuple as expected
While adding type-hints mypy flagged this as an issue. The thirdargument to register_custom_action is supposed to be a tuple. It wasbeing passed as a string rather than a tuple of strings.
1 parent916a7fe commit062f8f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎gitlab/v4/objects/merge_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def pipelines(self, **kwargs):
234234
path="%s/%s/pipelines"% (self.manager.path,self.get_id())
235235
returnself.manager.gitlab.http_get(path,**kwargs)
236236

237-
@cli.register_custom_action("ProjectMergeRequest",tuple(), ("sha"))
237+
@cli.register_custom_action("ProjectMergeRequest",tuple(), ("sha",))
238238
@exc.on_http_error(exc.GitlabMRApprovalError)
239239
defapprove(self,sha=None,**kwargs):
240240
"""Approve the merge request.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp