mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
mypy won't guess that 'question' does have an 'enabled' attr in that context é_è
This commit is contained in:
parent
f1003939a9
commit
aad576fdd0
1 changed files with 2 additions and 2 deletions
|
@ -1547,8 +1547,8 @@ def ask_questions_and_parse_answers(
|
||||||
question = question_class(raw_question, context=context, hooks=hooks)
|
question = question_class(raw_question, context=context, hooks=hooks)
|
||||||
if question.type == "button":
|
if question.type == "button":
|
||||||
if (
|
if (
|
||||||
not question.enabled
|
not question.enabled # type: ignore
|
||||||
or evaluate_simple_js_expression(question.enabled, context=context)
|
or evaluate_simple_js_expression(question.enabled, context=context) # type: ignore
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue