Closed mdickinson closed 8 months ago
Closes #1747
This PR issues a UserWarning when a *_default trait default method raises an AttributeError, to help detect an otherwise easy-to-miss failure mode.
UserWarning
*_default
AttributeError
Checklist
docs/source/traits_api_reference
docs/source/traits_user_manual
the test seems to only test one of the two code paths for the default generation
Good point; fixed in 4819297
I've also suppressed an instance of the new warning from an existing test in 45a2e1d.
Closes #1747
This PR issues a
UserWarning
when a*_default
trait default method raises anAttributeError
, to help detect an otherwise easy-to-miss failure mode.Checklist
docs/source/traits_api_reference
)docs/source/traits_user_manual
)