ruff check fix

This commit is contained in:
lda
2026-07-30 01:27:46 +07:00 Verified
parent a3a4fb9250
commit 981edd3cf5
42 changed files with 155 additions and 153 deletions
+1 -3
View File
@@ -291,9 +291,7 @@ def _resolve_local_reference(
raise ValueError(f"cyclic reference {reference!r} at schema path {label!r}")
seen.add(reference)
if reference.startswith("#/$defs/"):
pointer = reference.removeprefix("#/")
elif reference.startswith("#/definitions/"):
if reference.startswith("#/$defs/") or reference.startswith("#/definitions/"):
pointer = reference.removeprefix("#/")
else:
raise ValueError(