title: How to restrict values in a Float trait in Enthought traits module?
body: <p>I'm a bit new to Enthought <code>traits</code> module. I would like to specify a trait for which only a few floating-point values are allowed. Unfortunately, I can't use a <code>Enum</code> because it breaks the code base I'm working on. How can I specify which values are valid for a <code>Float</code>? Do I have to create another class deriving from <code>Float</code> with an overloaded <code>validate</code>?</p>