bundles / traitlets latest / traitlets / traitlets / Dict
class
traitlets.traitlets:Dict
source: /traitlets/traitlets.py :3857
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
-
__init__ -
class_init -
element_error -
from_string -
from_string_list -
item_from_string -
subclass_init -
validate -
validate_elements
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