Skip to content

Commit 930b956

Browse files
committed
pylint: work around a Python 3.13.1-specific bug.
The bug is: pylint-dev/pylint#10112 Fortunately, collections.abc is used only once, in the Ansible plugin, for type checking.
1 parent b3a847d commit 930b956

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/moulti/ansible/moulti.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
import os
33
import sys
44
import subprocess as sp
5-
import collections.abc as c
65
from datetime import datetime
76
from pathlib import Path
8-
from typing import Any
7+
from typing import Any, TYPE_CHECKING
98
# pylint: disable=import-error
109
from ansible.errors import AnsiblePromptInterrupt # type: ignore
1110
from ansible.utils.color import parsecolor # type: ignore
@@ -17,6 +16,9 @@
1716
from ansible.plugins.callback.default import CallbackModule as DefaultCallbackModule # type: ignore
1817
from ansible.utils.unsafe_proxy import wrap_var # type: ignore
1918

19+
if TYPE_CHECKING:
20+
import collections.abc as c
21+
2022
DOCUMENTATION = '''
2123
name: moulti
2224
type: stdout

0 commit comments

Comments
 (0)