{ } 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: