traits icon indicating copy to clipboard operation
traits copied to clipboard

Observable typed attributes for Python classes

Results 125 traits issues
Sort by recently updated
recently updated
newest added

Following [PEP 604](https://www.python.org/dev/peps/pep-0604/) which allows constructs like `int | float` as a replacement for `Union[int, float]` should we allow `Int | Float` as an (optional) replacement for `Union(Int, Float)`? The...

type: discussion
priority: low

Or perhaps even better, deprecate all the directory management and tell people to use `appdirs` instead? Default user directories could then be an application configuration option. We would need some...

type: enhancement

The CSS used for styling the appearance of the Traits tutorial in the `etsdemo` app could use some work. See discussion in #1418 and #1419.

type: enhancement
component: examples

In the following example, an `AttributeError` is raised complaining that the `foo` attribute is `None` even though the `foo` attribute is supplied at instantiation. My fuzzy understanding is that the...

topic: hastraits initialization

When an attribute has a `Date` type, then it is meant to be just *Date*, not *Date and Time*. So I would expect assigning a `datetime` object to a Date...

good first issue

It might be useful to have a short section of documentation describing what ETSConfig is / what it is useful for and how to use it. There is some mention...

component: documentation

Ref: https://github.com/enthought/pyface/pull/866 With traits 6.2 we are explicitly stating in documentation that imports should come from api modules. Because of this I decided to run through pyface for any non...

It is common to have `Union` traits of the form `Union(None, )`. As a convenience to developers, and following a similar convention in Python's `typing` module, we should consider having...

type: enhancement
type: discussion
easy
good first issue
priority: low

It would be good to review and rework the main landing page for the Traits documentation. In particular, it would be desirable to have a brief introduction to Traits on...

component: documentation
type: cleanup

Current Traits allows an `Instance` trait to be given an instance rather than a type as the first argument. It then replaces that instance with its type. So for example,...

type: discussion