Skip to content

Commit dbe138b

Browse files
committed
Fix doc example
1 parent 500bc0a commit dbe138b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎docs/defaulthooks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Any of these hooks can be overriden if pure validation is required instead.
4040
... def validate(value, type) -> int:
4141
... if not isinstance(value, type):
4242
... raise ValueError(f'{value!r} not an instance of {type}')
43+
... return value
4344

4445
>>> c.structure("1", int)
4546
Traceback (most recent call last):

0 commit comments

Comments
 (0)