ez_docker/plugins/module_utils/label/common.py
2024-12-19 14:42:25 +01:00

23 lines
472 B
Python

# Copyright: (c) 2024, Luca Bilke <luca@bil.ke>
# MIT License (see LICENSE)
from __future__ import annotations
from typing import TYPE_CHECKING, Callable
if TYPE_CHECKING:
from ansible_collections.ssnailed.ez_compose.plugins.module_utils.common import (
State,
)
BASE_ARGS = {
"name": {"type": "str", "required": True},
}
def run_helper(
state: State,
helper: Callable[[State], State] = lambda _: _,
) -> State:
return helper(state)