diff --git a/src/moulti/ansible/moulti.py b/src/moulti/ansible/moulti.py index f6e408d..335045d 100644 --- a/src/moulti/ansible/moulti.py +++ b/src/moulti/ansible/moulti.py @@ -2,10 +2,9 @@ import os import sys import subprocess as sp -import collections.abc as c from datetime import datetime from pathlib import Path -from typing import Any +from typing import Any, TYPE_CHECKING # pylint: disable=import-error from ansible.errors import AnsiblePromptInterrupt # type: ignore from ansible.utils.color import parsecolor # type: ignore @@ -17,6 +16,9 @@ from ansible.plugins.callback.default import CallbackModule as DefaultCallbackModule # type: ignore from ansible.utils.unsafe_proxy import wrap_var # type: ignore +if TYPE_CHECKING: + import collections.abc as c + DOCUMENTATION = ''' name: moulti type: stdout