get_trait()

Get a registered trait by name.

Usage

Source

get_trait(name)

Parameters

name: str
The trait name (e.g., "concise").

Returns

TraitDefinition
The trait definition.

Raises

KeyError
If no trait with that name exists.

Examples

import talk_box as tb

concise = tb.get_trait("concise")
concise.description