From aad576fdd0ed5dd1f18478c08b9c9c47dc836115 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 3 Oct 2022 17:12:53 +0200 Subject: [PATCH] =?UTF-8?q?mypy=20won't=20guess=20that=20'question'=20does?= =?UTF-8?q?=20have=20an=20'enabled'=20attr=20in=20that=20context=20=C3=A9?= =?UTF-8?q?=5F=C3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/config.py b/src/utils/config.py index 7411b79de..36f7d986d 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -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: