Skip to content

Commit 5fe9759

Browse files
committed
Fix some ambiguous API refs which only fail on Sphinx+Linux :/
1 parent 8e43f78 commit 5fe9759

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

jsonschema/validators.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,10 +1045,11 @@ def validate(instance, schema, cls=None, *args, **kwargs):
10451045
itself valid, since not doing so can lead to less obvious error
10461046
messages and fail in less obvious or consistent ways.
10471047
1048-
If you know you have a valid schema already, especially if you
1049-
intend to validate multiple instances with the same schema, you
1050-
likely would prefer using the `Validator.validate` method directly
1051-
on a specific validator (e.g. ``Draft7Validator.validate``).
1048+
If you know you have a valid schema already, especially
1049+
if you intend to validate multiple instances with
1050+
the same schema, you likely would prefer using the
1051+
`jsonschema.Validator.validate` method directly on a specific
1052+
validator (e.g. ``Draft20212Validator.validate``).
10521053
10531054
10541055
Arguments:
@@ -1061,7 +1062,7 @@ def validate(instance, schema, cls=None, *args, **kwargs):
10611062
10621063
The schema to validate with
10631064
1064-
cls (Validator):
1065+
cls (jsonschema.protocols.Validator):
10651066
10661067
The class that will be used to validate the instance.
10671068

0 commit comments

Comments
 (0)