diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-05 19:23:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-05 19:23:56 +0200 |
commit | 7a5923c8e77a41cb829a086a903aee4123ca4d14 (patch) | |
tree | 9d9129a8016e66ee397bcaab50ef22b08aea3d7e /gitlab/v4/cli.py | |
parent | 61b8beb8bed0a9d7cd30450fefba0dd76c0d35d6 (diff) | |
parent | 1324ce1a439befb4620953a4df1f70b74bf70cbd (diff) | |
download | gitlab-7a5923c8e77a41cb829a086a903aee4123ca4d14.tar.gz |
Merge pull request #2051 from python-gitlab/jlvillal/more_more_pylint
chore: enable more pylint checks
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index da203ff..dac6ede 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -377,13 +377,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, @@ -394,7 +395,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 @@ -406,8 +408,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, |