from dataclasses import dataclass


@dataclass
class SimpleVoteResult:
    """
    A simple data class to store the result of a vote.

    Attributes:
        identifier (str): The identifier of the voting district.
        percentage (float): The percentage of votes for the first option.
        count (int): The number of total votes cast.
    """
    # The identifier of the voting district.
    identifier: str
    # The percentage of votes for the first option.
    percentage: float
    # The number of total votes cast.
    count: int


@dataclass
class ComplexVoteResult:
    """
    A more complex data class to store the result of a vote.

    Attributes:
        identifier (str): The identifier of the voting district.
        percentages (list[float]): The percentages of votes for each option.
        count (int): The number of total votes cast.
    """
    identifier: str
    percentages: list[float]
    count: int
