1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-21 20:59:10 +00:00

Add missing __future__ imports (#11567)

Add missing __future__ imports.
This commit is contained in:
Felix Fontein 2026-03-11 06:42:08 +01:00 committed by GitHub
parent 7436c0c9ba
commit 9b72d95452
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 15 additions and 0 deletions

View file

@ -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) # 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 # SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
DOCUMENTATION = """ DOCUMENTATION = """
name: loganalytics_ingestion name: loganalytics_ingestion
type: notification type: notification

View file

@ -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) # 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 # SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
DOCUMENTATION = r""" DOCUMENTATION = r"""
name: accumulate name: accumulate
short_description: Produce a list of accumulated sums of the input list contents short_description: Produce a list of accumulated sums of the input list contents

View file

@ -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) # 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 # SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
DOCUMENTATION = r""" DOCUMENTATION = r"""
name: binary_file name: binary_file
author: Felix Fontein (@felixfontein) author: Felix Fontein (@felixfontein)

View file

@ -4,6 +4,7 @@
# Copyright © Thorsten Glaser <tglaser@b1-systems.de> # Copyright © Thorsten Glaser <tglaser@b1-systems.de>
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # 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""" DOCUMENTATION = r"""
--- ---

View file

@ -5,6 +5,8 @@
# Note that this module util is **PRIVATE** to the collection. It can have breaking changes at any time. # 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! # Do not use this from other collections or standalone plugins/modules!
from __future__ import annotations
import typing as t import typing as t
from collections.abc import Mapping, Set from collections.abc import Mapping, Set

View file

@ -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) # 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 # SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
import json import json
import time import time
import unittest import unittest

View file

@ -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) # 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 # SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
import os import os
from io import StringIO from io import StringIO
from pathlib import Path from pathlib import Path

View file

@ -3,6 +3,8 @@
# https://www.gnu.org/licenses/gpl-3.0.txt) # https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations
from contextlib import contextmanager from contextlib import contextmanager
from io import StringIO from io import StringIO
from itertools import count from itertools import count