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

Commit6189437

Browse files
chore: rename__call__() torun() in GitlabCLI
Less confusing to have it be a normal method.
1 parent00aec96 commit6189437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎gitlab/v4/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _process_from_parent_attrs(self) -> None:
7979
# If we don't delete it then it will be added to the URL as a query-string
8080
delself.args[key]
8181

82-
def__call__(self)->Any:
82+
defrun(self)->Any:
8383
# Check for a method that matches object + action
8484
method=f"do_{self.what}_{self.action}"
8585
ifhasattr(self,method):
@@ -505,7 +505,7 @@ def run(
505505
fields:List[str],
506506
)->None:
507507
g_cli=GitlabCLI(gl=gl,what=what,action=action,args=args)
508-
data=g_cli()
508+
data=g_cli.run()
509509

510510
printer:Union[JSONPrinter,LegacyPrinter,YAMLPrinter]=PRINTERS[output]()
511511

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp