from typing import Sequence


def average(values: Sequence) -> object:
    """Average a sequence of objects.

    Relies on two pre-conditions:
        - The values can be summed together
        - An instance of value can be divided by an int
    If the array-like structure is empty, will raise a ValueError.

    args:
        values: The array-like structure to average.
    return:
        _: The average value.
    """

    if not values:
        raise ValueError

    return sum(values) / len(values)