def colourise(__text: str, *args, **kwargs) -> str:
    """Colourise text using click’s style function.

    Returns text untouched if colour output is not enabled, or ``stdout`` is
    not a tty.

    See :func:`click.style` for parameters

    Args:
        __text: Text to colourise
    Returns:
        Colourised text, when possible
    """
    if sys.stdout.isatty():
        __text = style(__text, *args, **kwargs)
    return __text
Colourise text using click’s style function.

    Returns text untouched if colour output is not enabled, or ``stdout`` is
    not a tty.

    See :func:`click.style` for parameters

    Args:
        __text: Text to colourise
    Returns:
        Colourised text, when possible