diff --git a/plugins/callback/loganalytics_ingestion.py b/plugins/callback/loganalytics_ingestion.py index 69a72fd2e7..6c34e1f6ab 100644 --- a/plugins/callback/loganalytics_ingestion.py +++ b/plugins/callback/loganalytics_ingestion.py @@ -3,6 +3,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +from __future__ import annotations + DOCUMENTATION = """ name: loganalytics_ingestion type: notification diff --git a/plugins/filter/accumulate.py b/plugins/filter/accumulate.py index 7653a0bf91..c02c04cd83 100644 --- a/plugins/filter/accumulate.py +++ b/plugins/filter/accumulate.py @@ -2,6 +2,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +from __future__ import annotations + DOCUMENTATION = r""" name: accumulate short_description: Produce a list of accumulated sums of the input list contents diff --git a/plugins/lookup/binary_file.py b/plugins/lookup/binary_file.py index 4fbc35263a..cc7860d6e8 100644 --- a/plugins/lookup/binary_file.py +++ b/plugins/lookup/binary_file.py @@ -3,6 +3,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +from __future__ import annotations + DOCUMENTATION = r""" name: binary_file author: Felix Fontein (@felixfontein) diff --git a/plugins/modules/kea_command.py b/plugins/modules/kea_command.py index 5f44d13fda..a496172671 100644 --- a/plugins/modules/kea_command.py +++ b/plugins/modules/kea_command.py @@ -4,6 +4,7 @@ # Copyright © Thorsten Glaser # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +from __future__ import annotations DOCUMENTATION = r""" --- diff --git a/plugins/plugin_utils/_tags.py b/plugins/plugin_utils/_tags.py index 48fc603387..67e233694a 100644 --- a/plugins/plugin_utils/_tags.py +++ b/plugins/plugin_utils/_tags.py @@ -5,6 +5,8 @@ # Note that this module util is **PRIVATE** to the collection. It can have breaking changes at any time. # Do not use this from other collections or standalone plugins/modules! +from __future__ import annotations + import typing as t from collections.abc import Mapping, Set diff --git a/tests/unit/plugins/callback/test_loganalytics_ingestion.py b/tests/unit/plugins/callback/test_loganalytics_ingestion.py index 9b7cbcf80a..da21b2207b 100644 --- a/tests/unit/plugins/callback/test_loganalytics_ingestion.py +++ b/tests/unit/plugins/callback/test_loganalytics_ingestion.py @@ -2,6 +2,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +from __future__ import annotations + import json import time import unittest diff --git a/tests/unit/plugins/connection/test_wsl.py b/tests/unit/plugins/connection/test_wsl.py index 5121a16c9b..114d45d2da 100644 --- a/tests/unit/plugins/connection/test_wsl.py +++ b/tests/unit/plugins/connection/test_wsl.py @@ -4,6 +4,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +from __future__ import annotations + import os from io import StringIO from pathlib import Path diff --git a/tests/unit/plugins/modules/test_keycloak_realm_localization.py b/tests/unit/plugins/modules/test_keycloak_realm_localization.py index ba12433785..686f601a55 100644 --- a/tests/unit/plugins/modules/test_keycloak_realm_localization.py +++ b/tests/unit/plugins/modules/test_keycloak_realm_localization.py @@ -3,6 +3,8 @@ # https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +from __future__ import annotations + from contextlib import contextmanager from io import StringIO from itertools import count