If positional or keyword arguments are empty return only one or the other.

def _simplify_arguments(arguments):
    """
    If positional or keyword arguments are empty return only one or the other.
    """
    if len(arguments.args) == 0:
        return arguments.kwargs
    elif len(arguments.kwargs) == 0:
        return arguments.args
    else:
        return arguments