summaryrefslogtreecommitdiff
path: root/jsonschema/__init__.py
diff options
context:
space:
mode:
authorStephen Rosen <sirosen@globus.org>2021-12-13 21:22:05 +0000
committerStephen Rosen <sirosen@globus.org>2021-12-13 21:22:05 +0000
commit94dea8b44713f0c3d7b5d2c53941e1d56b3dc34a (patch)
tree2a4be1c5de530e37e1aa7ddc0919a4d37af1b0b3 /jsonschema/__init__.py
parent642a09f08318605b16563f47073d3e7b73025029 (diff)
downloadjsonschema-94dea8b44713f0c3d7b5d2c53941e1d56b3dc34a.tar.gz
Fix references to IValidator; add protocol tests
Several remaining cases referred to `IValidator` which is now just `Validtator`. Fix these. Add a test which ensures that all valdiators pass `isinstance(x, Validator)` using the runtime-checkable protocol.
Diffstat (limited to 'jsonschema/__init__.py')
-rw-r--r--jsonschema/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/jsonschema/__init__.py b/jsonschema/__init__.py
index c7fa76b..cd2102a 100644
--- a/jsonschema/__init__.py
+++ b/jsonschema/__init__.py
@@ -26,6 +26,7 @@ from jsonschema.exceptions import (
SchemaError,
ValidationError,
)
+from jsonschema.protocols import Validator
from jsonschema.validators import (
Draft3Validator,
Draft4Validator,