[PR #5981/68d0cac3 backport][stable-6] Ignore more unnecessary import warnings (#5983)
Ignore more unnecessary import warnings (#5981)
Fix imports.
(cherry picked from commit 68d0cac310
)
Co-authored-by: Felix Fontein <felix@fontein.de>
pull/5987/head
parent
3d70bfa1e4
commit
4def87bc53
|
@ -9,7 +9,7 @@ __metaclass__ = type
|
||||||
|
|
||||||
from ansible.module_utils.common.dict_transformations import dict_merge
|
from ansible.module_utils.common.dict_transformations import dict_merge
|
||||||
|
|
||||||
# (TODO: remove AnsibleModule!) pylint: disable-next-line=unused-import
|
# (TODO: remove AnsibleModule!) pylint: disable-next=unused-import
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.base import ModuleHelperBase, AnsibleModule # noqa: F401
|
from ansible_collections.community.general.plugins.module_utils.mh.base import ModuleHelperBase, AnsibleModule # noqa: F401
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.mixins.cmd import CmdMixin
|
from ansible_collections.community.general.plugins.module_utils.mh.mixins.cmd import CmdMixin
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.mixins.state import StateMixin
|
from ansible_collections.community.general.plugins.module_utils.mh.mixins.state import StateMixin
|
||||||
|
|
|
@ -15,6 +15,6 @@ from ansible_collections.community.general.plugins.module_utils.mh.mixins.cmd im
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.mixins.state import StateMixin # noqa: F401, pylint: disable=unused-import
|
from ansible_collections.community.general.plugins.module_utils.mh.mixins.state import StateMixin # noqa: F401, pylint: disable=unused-import
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.mixins.deps import DependencyCtxMgr # noqa: F401, pylint: disable=unused-import
|
from ansible_collections.community.general.plugins.module_utils.mh.mixins.deps import DependencyCtxMgr # noqa: F401, pylint: disable=unused-import
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.exceptions import ModuleHelperException # noqa: F401, pylint: disable=unused-import
|
from ansible_collections.community.general.plugins.module_utils.mh.exceptions import ModuleHelperException # noqa: F401, pylint: disable=unused-import
|
||||||
# pylint: disable-next-line=unused-import
|
# pylint: disable-next=unused-import
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.deco import cause_changes, module_fails_on_exception # noqa: F401
|
from ansible_collections.community.general.plugins.module_utils.mh.deco import cause_changes, module_fails_on_exception # noqa: F401
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.mixins.vars import VarMeta, VarDict # noqa: F401, pylint: disable=unused-import
|
from ansible_collections.community.general.plugins.module_utils.mh.mixins.vars import VarMeta, VarDict # noqa: F401, pylint: disable=unused-import
|
||||||
|
|
|
@ -235,7 +235,7 @@ import os
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Import PubNub BLOCKS client.
|
# Import PubNub BLOCKS client.
|
||||||
from pubnub_blocks_client import User, Account, Owner, Application, Keyset
|
from pubnub_blocks_client import User, Account, Owner, Application, Keyset # noqa: F401, pylint: disable=unused-import
|
||||||
from pubnub_blocks_client import Block, EventHandler
|
from pubnub_blocks_client import Block, EventHandler
|
||||||
from pubnub_blocks_client import exceptions
|
from pubnub_blocks_client import exceptions
|
||||||
HAS_PUBNUB_BLOCKS_CLIENT = True
|
HAS_PUBNUB_BLOCKS_CLIENT = True
|
||||||
|
|
Loading…
Reference in New Issue