1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

Clean up other Python files (#11379)

* Address issues found by ruff check.

* Make mypy happy; remove some Python 2 compat code.

* Also declare port1.
This commit is contained in:
Felix Fontein 2026-01-05 17:59:58 +01:00 committed by GitHub
parent 75234597bc
commit b3dc06a7dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 52 additions and 47 deletions

View file

@ -32,7 +32,7 @@ from ansible_collections.community.general.plugins.module_utils import deps
from ansible_collections.community.general.plugins.module_utils.module_helper import ModuleHelper
with deps.declare("nopackagewiththisname"):
import nopackagewiththisname # noqa: F401, pylint: disable=unused-import
import nopackagewiththisname # noqa: F401, pylint: disable=unused-import # type: ignore[import-not-found]
class MSimple(ModuleHelper):