summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/old_style_vars_plugins
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 /test/integration/targets/old_style_vars_plugins
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 'test/integration/targets/old_style_vars_plugins')
-rw-r--r--test/integration/targets/old_style_vars_plugins/deprecation_warning/v2_vars_plugin.py3
-rw-r--r--test/integration/targets/old_style_vars_plugins/deprecation_warning/vars.py2
-rw-r--r--test/integration/targets/old_style_vars_plugins/vars_plugins/auto_enabled.py2
-rw-r--r--test/integration/targets/old_style_vars_plugins/vars_plugins/implicitly_auto_enabled.py2
-rw-r--r--test/integration/targets/old_style_vars_plugins/vars_plugins/require_enabled.py2
5 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/old_style_vars_plugins/deprecation_warning/v2_vars_plugin.py b/test/integration/targets/old_style_vars_plugins/deprecation_warning/v2_vars_plugin.py
index f342b698a0..723e0a40cd 100644
--- a/test/integration/targets/old_style_vars_plugins/deprecation_warning/v2_vars_plugin.py
+++ b/test/integration/targets/old_style_vars_plugins/deprecation_warning/v2_vars_plugin.py
@@ -1,3 +1,6 @@
+from __future__ import annotations
+
+
class VarsModule:
def get_host_vars(self, entity):
return {}
diff --git a/test/integration/targets/old_style_vars_plugins/deprecation_warning/vars.py b/test/integration/targets/old_style_vars_plugins/deprecation_warning/vars.py
index f554be04fb..22fb451e29 100644
--- a/test/integration/targets/old_style_vars_plugins/deprecation_warning/vars.py
+++ b/test/integration/targets/old_style_vars_plugins/deprecation_warning/vars.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
from ansible.plugins.vars import BaseVarsPlugin
diff --git a/test/integration/targets/old_style_vars_plugins/vars_plugins/auto_enabled.py b/test/integration/targets/old_style_vars_plugins/vars_plugins/auto_enabled.py
index a91d94d1dd..c933f56c7e 100644
--- a/test/integration/targets/old_style_vars_plugins/vars_plugins/auto_enabled.py
+++ b/test/integration/targets/old_style_vars_plugins/vars_plugins/auto_enabled.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
from ansible.plugins.vars import BaseVarsPlugin
diff --git a/test/integration/targets/old_style_vars_plugins/vars_plugins/implicitly_auto_enabled.py b/test/integration/targets/old_style_vars_plugins/vars_plugins/implicitly_auto_enabled.py
index 4f407b4717..5dff8ad662 100644
--- a/test/integration/targets/old_style_vars_plugins/vars_plugins/implicitly_auto_enabled.py
+++ b/test/integration/targets/old_style_vars_plugins/vars_plugins/implicitly_auto_enabled.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
from ansible.plugins.vars import BaseVarsPlugin
diff --git a/test/integration/targets/old_style_vars_plugins/vars_plugins/require_enabled.py b/test/integration/targets/old_style_vars_plugins/vars_plugins/require_enabled.py
index a251447f0a..302b6cc3d4 100644
--- a/test/integration/targets/old_style_vars_plugins/vars_plugins/require_enabled.py
+++ b/test/integration/targets/old_style_vars_plugins/vars_plugins/require_enabled.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
from ansible.plugins.vars import BaseVarsPlugin