enthought / traits

Observable typed attributes for Python classes
Other
432 stars 85 forks source link

Remove the use of cTrait.default_value to set the default value #1632

Closed mdickinson closed 2 years ago

mdickinson commented 2 years ago

The use of cTrait.default_value to set the default value type and default value was deprecated in 2019, in #620. This PR removes that deprecated support. To set the default value type and default value for a CTrait or cTrait instance, use set_default_value.

Checklist

mdickinson commented 2 years ago

@rahulporuri Thanks for the review! I've updated. If you have bandwidth for another look, that would be much appreciated.