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

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`...

We have code examples for documentation stored in `examples/tutorials/doc_examples`, but then the content tends to be copied and pasted in the source. e.g. In https://github.com/enthought/traits/blob/1af120c7d68356105d66ec6458967b5660e37e3f/docs/source/traits_user_manual/advanced.rst Contains the same content as...

component: documentation
type: cleanup
component: examples

This is a placeholder issue for Traits 7.0: a reminder to review the various pieces of deprecated functionality in the Traits codebase and consider removing them. We'll need to make...

type: cleanup

The 'typecode' parameter to `Array` and `CArray` is long deprecated. We should remove it (but not until Traits 7.0). To do: check for uses of this keyword in other ETS...

type: cleanup

At the moment, it looks like we are storing the API docs in the codebase instead of dynamically generating it. The API reference is stored in https://github.com/enthought/traits/tree/master/docs/source/traits_api_reference . Is there...

type: enhancement
component: documentation

In https://github.com/enthought/traits/blob/master/docs/source/traits_user_manual/notification.rst the description of the `@on_trait_change` decorator is misleading in that it claims to generate static trait change handlers, but the reality is more complex.

component: documentation

I propose that we deprecate the old-style interface-checking machinery in Traits 7.0. Going forward, the recommendation should be that we use the standard library `abc`-based machinery. One key difference is...

type: discussion
type: cleanup

In the following example: ``` from traits.api import Dict, HasTraits, List, Set class Test(HasTraits): example_list = List() example_dict = Dict() example_set = Set() ``` Mypy gives the following errors: ```...

type: bug
priority: low
component: typing stubs

When change events are fired for a normal trait type, the event goes through a filtering using the comparison mode, e.g. if the comparison mode is `ComparisonMode.equality`, the change event...

For reasons that I am not aware of, it looks like some traits-stubs were defined as `Any` instead of being more specific. Here are a few examples which can be...

type: enhancement
component: typing stubs