enthought / enthought/traits

setattr_original_value should be a property of the `TraitType`

Open
#1,695 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.