def _build_map(answers: List[Dict]): """ Builds the answer_store's data structure from a list of answer dictionaries""" return {(answer["answer_id"], answer.get("list_item_id")): Answer.from_dict(answer) for answer in answers}
def _build_map( answers: Iterable[AnswerDict], ) -> dict[AnswerKeyType, Answer]: """Builds the answer_store's data structure from a list of answer dictionaries""" return {(answer["answer_id"], answer.get("list_item_id")): Answer.from_dict(answer) for answer in answers}