from typing import Union
from typing import Iterable


def fix_bindings(bindings: Union[str, Iterable[str]]) -> str:
    """Convert a string/list of strings into a single string of bindings."""
    if isinstance(bindings, str):
        return bindings
    return "\n".join(bindings)