from typing import List


def validate_max_capacities(max_capacities: List[float]) -> List[float]:
    """
    Validates the max capacities of an object.

    :param max_capacities: The max capacities of the object.
    :return: The validated max capacities.
    """
    if not max_capacities:
        raise ValueError("List of max capacities must not be empty.")

    return max_capacities