From a1249f1235067c84b6f3c5a0c02d1c4e11f6630e Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Tue, 1 Oct 2024 11:35:38 -0400 Subject: [PATCH] Cleanup redundant lint disable comments --- plugins/module_utils/linode_common.py | 3 +-- plugins/module_utils/linode_common_info.py | 2 -- plugins/module_utils/linode_common_list.py | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/module_utils/linode_common.py b/plugins/module_utils/linode_common.py index 0dd63734..b05dfc95 100644 --- a/plugins/module_utils/linode_common.py +++ b/plugins/module_utils/linode_common.py @@ -104,10 +104,9 @@ RETRY_STATUSES = {408, 429, 502} -class LinodeModuleBase: # pylint: disable=too-many-positional-arguments +class LinodeModuleBase: """A base for all Linode resource modules.""" - ## pylint: disable=too-many-positional-arguments def __init__( self, module_arg_spec: dict, diff --git a/plugins/module_utils/linode_common_info.py b/plugins/module_utils/linode_common_info.py index c17462f6..ce5a2a0c 100644 --- a/plugins/module_utils/linode_common_info.py +++ b/plugins/module_utils/linode_common_info.py @@ -113,9 +113,7 @@ class InfoModuleResult: class InfoModule(LinodeModuleBase): """A common module for listing API resources given a set of filters.""" - # pylint: disable=too-many-positional-arguments def __init__( - # pylint: disable=too-many-positional-arguments self, primary_result: InfoModuleResult, secondary_results: List[InfoModuleResult] = None, diff --git a/plugins/module_utils/linode_common_list.py b/plugins/module_utils/linode_common_list.py index d92ddb2a..7db6a4fb 100644 --- a/plugins/module_utils/linode_common_list.py +++ b/plugins/module_utils/linode_common_list.py @@ -42,10 +42,9 @@ class ListModuleParam: class ListModule( LinodeModuleBase -): # pylint: disable=too-many-instance-attributes,too-many-positional-arguments +): # pylint: disable=too-many-instance-attributes """A common module for listing API resources given a set of filters.""" - # pylint: disable=too-many-positional-arguments def __init__( self, result_display_name: str,