diff options
author | John L. Villalovos <john@sodarock.com> | 2022-06-26 17:11:21 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-06-26 17:11:21 -0700 |
commit | 23feae9b0906d34043a784a01d31d1ff19ebc9a4 (patch) | |
tree | 2d76c104968ac7f41264240c5a1278f0fb369446 /gitlab/v4/cli.py | |
parent | b6447211754e126f64e12fc735ad74fe557b7fb4 (diff) | |
download | gitlab-23feae9b0906d34043a784a01d31d1ff19ebc9a4.tar.gz |
test(pylint): enable pylint "unused-argument" check
Enable the pylint "unused-argument" check and resolve issues it found.
* Quite a few functions were accepting `**kwargs` but not then
passing them on through to the next level. Now pass `**kwargs` to
next level.
* Other functions had no reason to accept `**kwargs`, so remove it
* And a few other fixes.
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index ba2e788..d903527 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -381,7 +381,7 @@ def get_dict( class JSONPrinter: @staticmethod - def display(d: Union[str, Dict[str, Any]], **kwargs: Any) -> None: + def display(d: Union[str, Dict[str, Any]], **_kwargs: Any) -> None: import json # noqa print(json.dumps(d)) @@ -390,7 +390,7 @@ class JSONPrinter: def display_list( data: List[Union[str, gitlab.base.RESTObject]], fields: List[str], - **kwargs: Any, + **_kwargs: Any, ) -> None: import json # noqa @@ -399,7 +399,7 @@ class JSONPrinter: class YAMLPrinter: @staticmethod - def display(d: Union[str, Dict[str, Any]], **kwargs: Any) -> None: + def display(d: Union[str, Dict[str, Any]], **_kwargs: Any) -> None: try: import yaml # noqa @@ -415,7 +415,7 @@ class YAMLPrinter: def display_list( data: List[Union[str, gitlab.base.RESTObject]], fields: List[str], - **kwargs: Any, + **_kwargs: Any, ) -> None: try: import yaml # noqa @@ -434,7 +434,7 @@ class YAMLPrinter: class LegacyPrinter: - def display(self, d: Union[str, Dict[str, Any]], **kwargs: Any) -> None: + def display(self, _d: Union[str, Dict[str, Any]], **kwargs: Any) -> None: verbose = kwargs.get("verbose", False) padding = kwargs.get("padding", 0) obj: Optional[Union[Dict[str, Any], gitlab.base.RESTObject]] = kwargs.get("obj") |