Skip to content

Commit 1d5e77c

Browse files
committed
lint
1 parent 9e7e017 commit 1d5e77c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jsonschema/_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,15 @@ def find_evaluated_property_keys_by_schema(validator, instance, schema):
277277
if keyword in schema:
278278
schema_value = schema[keyword]
279279
if validator.is_type(schema_value, "boolean") and schema_value:
280-
for property, value in instance.items():
281-
evaluated_keys.append(property)
280+
evaluated_keys += instance.keys()
282281

283282
elif validator.is_type(schema_value, "object"):
284-
for property, subschema in schema_value.items():
283+
for property in schema_value:
285284
if property in instance:
286285
evaluated_keys.append(property)
287286

288287
if "patternProperties" in schema:
289-
for property, value in instance.items():
288+
for property in instance:
290289
for pattern in schema["patternProperties"]:
291290
if re.search(pattern, property):
292291
evaluated_keys.append(property)

0 commit comments

Comments
 (0)