{ } Raw JSON

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