Skip to content

Commit 4eb5bad

Browse files
authored
Merge pull request #2052 from python-gitlab/jlvillal/cli_minor_clean
chore: rename `__call__()` to `run()` in GitlabCLI
2 parents 9ab3c10 + 6189437 commit 4eb5bad

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
del self.args[key]
8181

82-
def __call__(self) -> Any:
82+
def run(self) -> Any:
8383
# Check for a method that matches object + action
8484
method = f"do_{self.what}_{self.action}"
8585
if hasattr(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)