-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traits incorrectly added by depends_on
with Property
#447
Comments
Confirmed on current Traits master. |
Note: this doesn't happen on Traits 4.6.0, but it's still true that |
Ultimately, this happens because (see here for the interpretation of that The trait that is added is a We probably could explicitly check for the |
This issue has the side effect that pickling is broken in case there are references to nonexisting traits in depends_on. In the example below, if I have a typo in depends_on, I get a pickling error related to Disallow.
Error:
|
* Add tests for Property; they are failing now * Add a test for pickability, it is passing * Implement keyword 'observes' for using Property with observation * Fix docstring format * Update user manual accordingly * Update example for user manual * Add a test to demonstrate new behaviour to prevent issues like in #447 * Update API reference for depends_on * More API reference update * Rename observes to observe * Expand docstring * Add cross reference link for @cached_property * Use HasStrictTraits in example * Drive-by: Remove extra whitespace * Drive-by: Fix up whitespaces in the moved documentation in appendix * Two more whitespaces
Here's code that shows the behavior:
The text was updated successfully, but these errors were encountered: