Skip to content

Commit d5df851

Browse files
committed
Make it even more explicit that extend/create operate on classes and return classes.
1 parent 35b60f3 commit d5df851

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/creating.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Creating or Extending Validators
88

99
.. autofunction:: create
1010

11-
Create a new validator.
11+
Create a new validator (class).
1212

13-
:argument dict meta_schema: the meta schema for the new validator
13+
:argument dict meta_schema: the meta schema for the new validator class
1414

1515
:argument dict validators: a mapping from validator names to functions that
1616
validate the given name. Each function should take 4 arguments: a
@@ -27,14 +27,14 @@ Creating or Extending Validators
2727
for this argument is probably fine. Instances of the returned validator
2828
can still have their types customized on a per-instance basis.
2929

30-
:returns: an :class:`jsonschema.IValidator`
30+
:returns: a new :class:`jsonschema.IValidator` class
3131

3232

3333
.. autofunction:: extend
3434

35-
Create a new validator that extends an existing validator.
35+
Create a new validator that extends an existing validator class.
3636

37-
:argument jsonschema.IValidator validator: an existing validator
37+
:argument jsonschema.IValidator validator: an existing validator class
3838

3939
:argument dict validators: a set of new validators to add to the new
4040
validator.
@@ -50,7 +50,7 @@ Creating or Extending Validators
5050

5151
:argument str version: a version for the new validator
5252

53-
:returns: an :class:`jsonschema.IValidator`
53+
:returns: a new :class:`jsonschema.IValidator` class
5454

5555
.. note:: Meta Schemas
5656

0 commit comments

Comments
 (0)