enthought / enthought/traits

Improve CHasTraits._trait API

Open
#840 0 comments 0 reactions 1 assignee Claimed by @shoeb-github View on GitHub
type: refactor
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

The `CHasTraits._trait` method takes a second argument that's an integer between -2 and 2 (inclusive), with various different meanings.

We should consider either:

- Adding an enumeration that encapsulates the possible values for that second argument, or
- (perhaps better) reworking the API to be more user-friendly

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.