enthought / enthought/traits

Consider implementing BaseList / BaseDict / BaseSet

Open
#1,256 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

Use case first: There is a use case (in pyface actually) where we would want to validate the length of a list dynamically, but the `minlen` and `maxlen` on `List` are static.

This prompted a more general question: should there be a stable and extensible trait type base class for `TraitList`, `TraitDict` and `TraitSet` that projects can subclass and extend from.

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.