not foo -> foo is None

This commit is contained in:
Alexandre Aubin 2022-10-04 22:27:23 +02:00 committed by GitHub
parent 463d76f867
commit fe4f8b4d5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1551,7 +1551,7 @@ def ask_questions_and_parse_answers(
question = question_class(raw_question, context=context, hooks=hooks)
if question.type == "button":
if (
not question.enabled # type: ignore
question.enabled is None # type: ignore
or evaluate_simple_js_expression(question.enabled, context=context) # type: ignore
):
continue