bundles / traitlets latest / traitlets / traitlets / Dict / item_from_string
function
traitlets.traitlets:Dict.item_from_string
source: /traitlets/traitlets.py :4102
Signature
def item_from_string ( self , s : str ) → dict[K, V] Summary
Cast a single-key dict from a string.
Extended Summary
Evaluated when parsing CLI configuration from a string.
Dicts expect strings of the form key=value.
Returns a one-key dictionary, which will be merged in .from_string_list.
Aliases
-
traitlets.Dict.item_from_string