mypy won't guess that 'question' does have an 'enabled' attr in that context é_è

This commit is contained in:
Alexandre Aubin 2022-10-03 17:12:53 +02:00
parent f1003939a9
commit aad576fdd0

View file

@ -1547,8 +1547,8 @@ def ask_questions_and_parse_answers(
question = question_class(raw_question, context=context, hooks=hooks)
if question.type == "button":
if (
not question.enabled
or evaluate_simple_js_expression(question.enabled, context=context)
not question.enabled # type: ignore
or evaluate_simple_js_expression(question.enabled, context=context) # type: ignore
):
continue
else: