Skip to content

Commit 6787b21

Browse files
committed
Minor style.
1 parent 10ad755 commit 6787b21

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jsonschema/_utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,11 @@ def _schema_is_referenced(schema, parent_schema):
353353
"""
354354
Checks if a schema is referenced by another schema
355355
"""
356-
return ("$id" in schema and "$ref" in parent_schema
357-
and parent_schema["$ref"] == schema["$id"])
356+
return (
357+
"$id" in schema
358+
and "$ref" in parent_schema
359+
and parent_schema["$ref"] == schema["$id"]
360+
)
358361

359362

360363
def _find_dynamic_anchor_extender(validator, scopes, fragment, schema):
@@ -408,11 +411,9 @@ def dynamic_anchor_extender(validator, scopes, fragment, schema, subschema):
408411

409412

410413
def match_keyword(keyword):
411-
412414
def matcher(value):
413415
if keyword in value:
414416
yield value
415-
416417
return matcher
417418

418419

0 commit comments

Comments
 (0)