Wrong type hinting for given_answers
According to https://gitlab.hzdr.de/hifis/survey-analysis-2020/-/blob/797c8eb6e0028821d238366591ade7090ec9c3db/survey_analysis/question.py#L87 the given_answers
of a question are described as an association of participants by ID with their given answers and represented by a dict like tthe following Dict[str, List[Answer]]
.
The type of the keys are actually integers and not strings. You can check with:
question: Question = globals.survey_questions["G1003"]
key_types = [type(key) for key in question.given_answers.keys()]
print(key_types)