from typing import Callable
from typing import Any


def style_test(func: Callable[..., bool]) -> Callable[..., bool]:
    """Decorator for printing out the results of a style test."""

    def success_func(*args: Any, **kwargs: Any) -> bool:
        result = func(*args, **kwargs)
        if result:
            print("All good!")
        else:
            print("Error!")
        return result

    return success_func