summaryrefslogtreecommitdiffstats
path: root/hacking/test-module.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-10-05 00:11:17 +0200
committerGitHub <noreply@github.com>2023-10-05 00:11:17 +0200
commit9f899f94924fafeb330b1e8b18c970742da56e0d (patch)
treef0f250716e1b190097ac289b5657b5dfd058389a /hacking/test-module.py
parentansible-test - Remove more Python 2.7 / 3.6 support (#81898) (diff)
downloadansible-9f899f94924fafeb330b1e8b18c970742da56e0d.tar.xz
ansible-9f899f94924fafeb330b1e8b18c970742da56e0d.zip
Require `from __future__ import annotations` (#81902)
Diffstat (limited to 'hacking/test-module.py')
-rwxr-xr-xhacking/test-module.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/hacking/test-module.py b/hacking/test-module.py
index 7a329b4b2d..7b39798de5 100755
--- a/hacking/test-module.py
+++ b/hacking/test-module.py
@@ -28,8 +28,7 @@
# ./hacking/test-module.py -m lib/ansible/modules/lineinfile.py -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check
# ./hacking/test-module.py -m lib/ansible/modules/command.py -a "echo hello" -n -o "test_hello"
-from __future__ import (absolute_import, division, print_function)
-__metaclass__ = type
+from __future__ import annotations
import glob
import optparse