enthought / chaco

Chaco is a Python package for building interactive and custom 2-D plots.
http://docs.enthought.com/chaco/
Other
292 stars 99 forks source link

Remove uses of old-style traits constructors #829

Closed corranwebster closed 1 year ago

corranwebster commented 2 years ago

The use of the Trait() factory function and related TraitHandler-based constructs is discouraged: most or all of its uses can be done by more modern TraitTypes such as Map and Union. These should be replaced by newer idioms so that the older constructors can eventually be removed from Traits.

These occasionally cause issues when mixed with newer trait types (eg. as in #828).