mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-27 13:53:10 +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.
(cherry picked from commit b3dc06a7dd)
Co-authored-by: Felix Fontein <felix@fontein.de>