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

bundles / traitlets 5.14.3 / traitlets / traitlets / Dict

class

traitlets.traitlets:Dict

source: /traitlets/traitlets.py :3842

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