Skip to content

Commit 9e7e017

Browse files
committed
lint
1 parent 1583370 commit 9e7e017

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jsonschema/_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,13 @@ def find_evaluated_property_keys_by_schema(validator, instance, schema):
275275
"properties", "additionalProperties", "unevaluatedProperties",
276276
]:
277277
if keyword in schema:
278-
if validator.is_type(schema[keyword], "boolean") and schema[keyword]:
278+
schema_value = schema[keyword]
279+
if validator.is_type(schema_value, "boolean") and schema_value:
279280
for property, value in instance.items():
280281
evaluated_keys.append(property)
281282

282-
elif validator.is_type(schema[keyword], "object"):
283-
for property, subschema in schema[keyword].items():
283+
elif validator.is_type(schema_value, "object"):
284+
for property, subschema in schema_value.items():
284285
if property in instance:
285286
evaluated_keys.append(property)
286287

0 commit comments

Comments
 (0)