(text: str, style: Dict[str, Any])
return click.style(
        text, fg=style["fg"], bold=style.get("bold", False), dim=style.get("dim", False)
    )
Return the formatted text with the given style.
Return the formatted text with the given style.
Return the formatted text with the given style .
def format_text(text: str, style: Dict[str, Any]) -> str:
    """Return the formatted text with the given style."""
    return click.style(
        text, fg=style["fg"], bold=style.get("bold", False), dim=style.get("dim", False)
    )
def format_text ( text : str , style : Dict [ str , Any ] ) -> str : return click . style ( text , fg = style [ "fg" ] , bold = style . get ( "bold" , False ) , dim = style . get ( "dim" , False ) )