Skip to content

Commit

Permalink
Cleanup redundant lint disable comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Oct 1, 2024
1 parent ed87c0c commit a1249f1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions plugins/module_utils/linode_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions plugins/module_utils/linode_common_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions plugins/module_utils/linode_common_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a1249f1

Please sign in to comment.