Closed glyg closed 5 years ago
There is some black magic going on in traitlets that set attributes on the traits pointing back to the containing HasTraits
class. Given that this is used as a sub-trait, I'm not sure if there are any actual consequences to speak of, but I think it might be cleaner to use the Undefined
pattern. Also, traits are only instantiated per-class, so there shouldn't be a notable performance impact.
I assumed creating a global CFLOAT variable was ok? If not I'll change to the
Undefined
mecanism used for thedefault_value
argument.