Skip to content

Commit a5b0b1c

Browse files
committed
fix spelling issue
1 parent 5f73c0e commit a5b0b1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jsonschema/validators.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,12 @@ def iter_errors(self, instance, _schema=None):
380380
return
381381

382382
todo = {k for _, k, _ in validators}
383-
while validators:
384-
dependant = []
383+
while todo:
384+
dependent = []
385385
for validator, k, v in validators:
386386
if isinstance(validator, _keywords.Keyword) \
387387
and todo.intersection(validator.needs):
388-
dependant.append([validator, k, v])
388+
dependent.append([validator, k, v])
389389
continue
390390
errors = validator(self, v, instance, _schema) or ()
391391
for error in errors:
@@ -401,9 +401,9 @@ def iter_errors(self, instance, _schema=None):
401401
error.schema_path.appendleft(k)
402402
yield error
403403
todo.discard(k)
404-
if dependant == validators:
404+
if dependent == validators:
405405
raise ValueError("Circular dependency between keywords")
406-
validators = dependant
406+
validators = dependent
407407

408408
def descend(
409409
self,

0 commit comments

Comments
 (0)