From 9e7e017fe98dad34daaa22ad5fd9220c69dd79b6 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Mon, 27 Mar 2023 21:35:03 -0400 Subject: lint --- jsonschema/_utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'jsonschema') diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py index 223f2df..22a0252 100644 --- a/jsonschema/_utils.py +++ b/jsonschema/_utils.py @@ -275,12 +275,13 @@ def find_evaluated_property_keys_by_schema(validator, instance, schema): "properties", "additionalProperties", "unevaluatedProperties", ]: if keyword in schema: - if validator.is_type(schema[keyword], "boolean") and schema[keyword]: + schema_value = schema[keyword] + if validator.is_type(schema_value, "boolean") and schema_value: for property, value in instance.items(): evaluated_keys.append(property) - elif validator.is_type(schema[keyword], "object"): - for property, subschema in schema[keyword].items(): + elif validator.is_type(schema_value, "object"): + for property, subschema in schema_value.items(): if property in instance: evaluated_keys.append(property) -- cgit v1.2.1