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

bundles / traitlets 5.15.0 /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: