from typing import Callable


def decorate_validation_errors(func: Callable) -> Callable:
    """
    Decorator that wraps the output of `func` with separators if validation
    errors are found.
    """

    def wrapper(*args, **kwargs):
        # All conditions were met: let's not print anything around the output
        if all(value is None for value in args[0]):
            return

        print("=" * 60)
        func(*args, **kwargs)
        print("=" * 60)

    return wrapper