Skip to content

Commit 84a1870

Browse files
committed
Fix infinite recursion in TypeChecker example
1 parent cdf4887 commit 84a1870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/validate.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ existing `TypeChecker` or create a new one. You may then create a new
213213
214214
def is_my_int(checker, instance):
215215
return (
216-
checker.is_type(instance, "number") or
216+
Draft3Validator.TYPE_CHECKER.is_type(instance, "number") or
217217
isinstance(instance, MyInteger)
218218
)
219219

0 commit comments

Comments
 (0)