def questions(self, type=None):
if type is None:<EOL><INDENT>type = Question<EOL><DEDENT>if not issubclass(type, Question):<EOL><INDENT>raise TypeError("<STR_LIT>".format(type))<EOL><DEDENT>return type.query.filter_by(participant_id=self.id).all()<EOL>
Get questions associated with this participant.

        Return a list of questions associated with the participant. If
        specified, ``type`` filters by class.