summaryrefslogtreecommitdiff
path: root/gitlab/v4/cli.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-06-03 16:40:43 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-06-04 09:18:22 -0700
commit80aadaf4262016a8181b5150ca7e17c8139c15fa (patch)
tree8ac2d21a6e07eaa659de80e77b06bdef9780fa5b /gitlab/v4/cli.py
parentd0b0811211f69f08436dcf7617c46617fe5c0b8b (diff)
downloadgitlab-80aadaf4262016a8181b5150ca7e17c8139c15fa.tar.gz
chore: enable pylint check: "no-self-use"
Enable the pylint check "no-self-use" and fix the errors detected.
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r--gitlab/v4/cli.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py
index c4e15fc..3339a5a 100644
--- a/gitlab/v4/cli.py
+++ b/gitlab/v4/cli.py
@@ -371,13 +371,14 @@ def get_dict(
class JSONPrinter:
- def display(self, d: Union[str, Dict[str, Any]], **kwargs: Any) -> None:
+ @staticmethod
+ def display(d: Union[str, Dict[str, Any]], **kwargs: Any) -> None:
import json # noqa
print(json.dumps(d))
+ @staticmethod
def display_list(
- self,
data: List[Union[str, gitlab.base.RESTObject]],
fields: List[str],
**kwargs: Any,
@@ -388,7 +389,8 @@ class JSONPrinter:
class YAMLPrinter:
- def display(self, d: Union[str, Dict[str, Any]], **kwargs: Any) -> None:
+ @staticmethod
+ def display(d: Union[str, Dict[str, Any]], **kwargs: Any) -> None:
try:
import yaml # noqa
@@ -400,8 +402,8 @@ class YAMLPrinter:
"to use the yaml output feature"
)
+ @staticmethod
def display_list(
- self,
data: List[Union[str, gitlab.base.RESTObject]],
fields: List[str],
**kwargs: Any,