-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn if a Trait default method raises AttributeError (#1762)
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. **Checklist** - [x] Tests - [ ] Update API reference (`docs/source/traits_api_reference`) - [ ] Update User manual (`docs/source/traits_user_manual`) - [ ] Update type annotation hints in stub files
- Loading branch information
1 parent
2b95e24
commit 9778f4d
Showing
3 changed files
with
110 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters