setattr_original_value should be a property of the `TraitType`
Open
component: core
type: refactor
- Dominant language
- Python
- Stars
- 462
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
[From #1645]
`TraitType.clone` needs to know the value of `setattr_original_value` for the associated ctrait, resulting in this awkwardness in the clone method (following merge of #1645)
```
setattr_original_value = new.as_ctrait().setattr_original_value
```
Instead, we should make `setattr_original_value` an attribute of the `TraitType` itself.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.