Skip to content

Commit 294ecd6

Browse files
committed
Type annotation for validator_for.
1 parent 2afe0e3 commit 294ecd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonschema/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ def validate(instance, schema, cls=None, *args, **kwargs): # noqa: D417
13111311
raise error
13121312

13131313

1314-
def validator_for(schema, default=_UNSET):
1314+
def validator_for(schema, default=_UNSET) -> Validator:
13151315
"""
13161316
Retrieve the validator class appropriate for validating the given schema.
13171317

0 commit comments

Comments
 (0)