We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
proposal['value']
1 parent 4915986 commit b1cdea4Copy full SHA for b1cdea4
docs/source/using_traitlets.rst
@@ -122,7 +122,8 @@ Basic Example: Validating the Parity of a Trait
122
parity_check.parity = 1
123
124
Notice how all of the examples above return
125
-``proposal['value']``. This is necessary for validation to work
+``proposal['value']``. Returning a value
126
+is necessary for validation to work
127
properly, since the new value of the trait will be the
128
return value of the function decorated by ``@validate``. If this
129
function does not have any ``return`` statement, then the returned
0 commit comments