Skip to content

Commit b1cdea4

Browse files
metaperlblink1073
andauthored
Even though returning a value from a validation method is ideal, by no means is proposal['value'] the only thing that can be returned (#855)
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
1 parent 4915986 commit b1cdea4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/using_traitlets.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ Basic Example: Validating the Parity of a Trait
122122
parity_check.parity = 1
123123
124124
Notice how all of the examples above return
125-
``proposal['value']``. This is necessary for validation to work
125+
``proposal['value']``. Returning a value
126+
is necessary for validation to work
126127
properly, since the new value of the trait will be the
127128
return value of the function decorated by ``@validate``. If this
128129
function does not have any ``return`` statement, then the returned

0 commit comments

Comments
 (0)