def selection_from(description: SelectionDescription, is_placeholder: bool=False, is_affirmative: bool=False) -> PlaintextBallotSelection:
    '\n    Construct a `BallotSelection` from a specific `SelectionDescription`.\n    This function is useful for filling selections when a voter undervotes a ballot.\n    It is also used to create placeholder representations when generating the `ConstantChaumPedersenProof`\n\n    :param description: The `SelectionDescription` which provides the relevant `object_id`\n    :param is_placeholder: Mark this selection as a placeholder value\n    :param is_affirmative: Mark this selection as `yes`\n    :return: A BallotSelection\n    '
    return PlaintextBallotSelection(description.object_id, vote=(1 if is_affirmative else 0), is_placeholder_selection=is_placeholder)
Construct a `BallotSelection` from a specific `SelectionDescription`.
This function is useful for filling selections when a voter undervotes a ballot.
It is also used to create placeholder representations when generating the `ConstantChaumPedersenProof`

:param description: The `SelectionDescription` which provides the relevant `object_id`
:param is_placeholder: Mark this selection as a placeholder value
:param is_affirmative: Mark this selection as `yes`
:return: A BallotSelection
def selection_from(description: SelectionDescription, is_placeholder: bool=False, is_affirmative: bool=False) -> PlaintextBallotSelection:
    '\n    Construct a `BallotSelection` from a specific `SelectionDescription`.\n    This function is useful for filling selections when a voter undervotes a ballot.\n    It is also used to create placeholder representations when generating the `ConstantChaumPedersenProof`\n\n    :param description: The `SelectionDescription` which provides the relevant `object_id`\n    :param is_placeholder: Mark this selection as a placeholder value\n    :param is_affirmative: Mark this selection as `yes`\n    :return: A BallotSelection\n    '
    return PlaintextBallotSelection(description.object_id, vote=(1 if is_affirmative else 0), is_placeholder_selection=is_placeholder)