Skip to content

Commit

Permalink
Update kwargs type from str to Any
Browse files Browse the repository at this point in the history
  • Loading branch information
tanwigeetika1618 committed Oct 1, 2024
1 parent e064a20 commit 8b9c6b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansiblelint/rules/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ class ValidationPassedError(Exception):
class CustomAnsibleModule(basic.AnsibleModule): # type: ignore[misc]
"""Mock AnsibleModule class."""

def __init__(self, *args: str, **kwargs: str) -> None:
def __init__(self, *args: str, **kwargs: Any) -> None:
"""Initialize AnsibleModule mock."""
kwargs["no_log"] = True
super().__init__(no_log=True, *args, **kwargs)
super().__init__(*args, **kwargs)
raise ValidationPassedError


Expand Down

0 comments on commit 8b9c6b0

Please sign in to comment.