You are viewing an older version (5.14.3). Go to latest (5.15.0)
{ } Raw JSON

bundles / traitlets 5.14.3 / docs

Doc

Defining new trait types

docs/defining_traits

To define a new trait type, subclass from TraitType. You can define the following things:

For instance, here's the definition of the TCPAddress trait: