{ } Raw JSON

bundles / traitlets latest / traitlets / traitlets / Dict

class

traitlets.traitlets:Dict

source: /traitlets/traitlets.py:3883

Signature

class Dict(value_trait: TraitType[t.Any, t.Any] | dict[K, V] | Sentinel | None = None, per_key_traits: t.Any = None, key_trait: TraitType[t.Any, t.Any] | None = None, default_value: dict[K, V] | Sentinel | None = traitlets.Undefined, **kwargs: t.Any) → None

Members

Summary

An instance of a Python dict.

Extended Summary

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Aliases

  • traitlets.Dict