21 lines
445 B
Python
21 lines
445 B
Python
# Copyright: (c) 2024, Luca Bilke <luca@bil.ke>
|
|
# MIT License (see LICENSE)
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING, Any, Callable
|
|
|
|
if TYPE_CHECKING:
|
|
from ansible_collections.ssnailed.ez_compose.plugins.module_utils.common import (
|
|
State,
|
|
)
|
|
|
|
|
|
BASE_ARGS: dict[str, Any] = {}
|
|
|
|
|
|
def run_helper(
|
|
state: State,
|
|
helper: Callable[[State], State] = lambda _: _,
|
|
) -> State:
|
|
return helper(state)
|