From 9f899f94924fafeb330b1e8b18c970742da56e0d Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 4 Oct 2023 18:11:17 -0400 Subject: Require `from __future__ import annotations` (#81902) --- .../ansible_collections/ns/col/do-not-check-me.py | 2 ++ .../ansible_collections/ns/col/plugins/modules/check-me.py | 2 ++ .../integration/targets/ansible-test-sanity-use-compat-six/expected.txt | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'test/integration/targets/ansible-test-sanity-use-compat-six') diff --git a/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/do-not-check-me.py b/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/do-not-check-me.py index 7f7f9f5819..a3ea929f76 100644 --- a/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/do-not-check-me.py +++ b/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/do-not-check-me.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import six diff --git a/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/plugins/modules/check-me.py b/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/plugins/modules/check-me.py index 7f7f9f5819..a3ea929f76 100644 --- a/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/plugins/modules/check-me.py +++ b/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/plugins/modules/check-me.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import six diff --git a/test/integration/targets/ansible-test-sanity-use-compat-six/expected.txt b/test/integration/targets/ansible-test-sanity-use-compat-six/expected.txt index 42ba83ba8d..c3b005ded3 100644 --- a/test/integration/targets/ansible-test-sanity-use-compat-six/expected.txt +++ b/test/integration/targets/ansible-test-sanity-use-compat-six/expected.txt @@ -1 +1 @@ -plugins/modules/check-me.py:1:1: use `ansible.module_utils.six` instead of `six` +plugins/modules/check-me.py:3:1: use `ansible.module_utils.six` instead of `six` -- cgit v1.2.3