There was an error while loading. Please reload this page.
1 parent 500bc0a commit dbe138bCopy full SHA for dbe138b
docs/defaulthooks.md
@@ -40,6 +40,7 @@ Any of these hooks can be overriden if pure validation is required instead.
40
... def validate(value, type) -> int:
41
... if not isinstance(value, type):
42
... raise ValueError(f'{value!r} not an instance of {type}')
43
+... return value
44
45
>>> c.structure("1", int)
46
Traceback (most recent call last):
0 commit comments