From c8d744d38b88cb24471d43ef5e30a8d47026b5ff Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Wed, 30 Aug 2023 23:29:26 +0300 Subject: [PATCH] More lint fixing --- assertionengine/assertion_engine.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/assertionengine/assertion_engine.py b/assertionengine/assertion_engine.py index b6e0e22..0a83f3f 100644 --- a/assertionengine/assertion_engine.py +++ b/assertionengine/assertion_engine.py @@ -392,13 +392,12 @@ def int_dict_verify_assertion( return verify_assertion( value, operator, evaluated_expected, message, custom_message ) - elif expected and operator in NumericalOperators: + if expected and operator in NumericalOperators: for k, v in value.items(): exp = expected[k] verify_assertion(v, operator, exp, message, custom_message) return value - else: - raise AttributeError( - f"Operator '{operator.name}' is not allowed in this Keyword." - f"Allowed operators are: {NumericalOperators} and {SequenceOperators}" - ) + raise AttributeError( + f"Operator '{operator.name}' is not allowed in this Keyword." + f"Allowed operators are: {NumericalOperators} and {SequenceOperators}" + )