Skip to content

Commit

Permalink
pylint: work around a Python 3.13.1-specific bug.
Browse files Browse the repository at this point in the history
The bug is:
pylint-dev/pylint#10112

Fortunately, collections.abc is used only once, in the Ansible plugin, for type
checking.
  • Loading branch information
xavierog committed Dec 16, 2024
1 parent aa1a0f4 commit de9804a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/moulti/ansible/moulti.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit de9804a

Please sign in to comment.