Remove unneccessary imports (#569)

* Remove unneccessary imports.

* Add noqas.

* Add comment which name is actually ignored.
This commit is contained in:
Felix Fontein
2023-02-09 11:57:54 +01:00
committed by GitHub
parent 7f040011f0
commit aea3713484
6 changed files with 8 additions and 6 deletions

View File

@@ -69,9 +69,9 @@ try:
# For ansible-core 2.11, we can use the ArgumentSpecValidator. We also import
# ModuleArgumentSpecValidator since that indicates that the 'classical' approach
# will no longer work.
from ansible.module_utils.common.arg_spec import (
from ansible.module_utils.common.arg_spec import ( # noqa: F401, pylint: disable=unused-import
ArgumentSpecValidator,
ModuleArgumentSpecValidator, # noqa
ModuleArgumentSpecValidator, # ModuleArgumentSpecValidator is not used
)
from ansible.module_utils.errors import UnsupportedError
HAS_ARGSPEC_VALIDATOR = True