-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
I'm seeing the following in traitlets 4.3.2. It appears that the validation for x is not getting called. If I change x = Any(()) to x = Tuple( () ), the validator is called.
In [2]: from traitlets import HasTraits, Unicode, Any, validate, Tuple
...: class A(HasTraits):
...: x = Any(())
...:
...: @validate('x')
...: def f(self, proposal):
...: print(proposal)
...: return (1,2)
...: A().x
...:
Out[2]: ()
In [3]: import traitlets
...: traitlets.__version__
...:
Out[3]: '4.3.2'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels