Nests keys from srclist into destdict, with optional value set on the final key.
destdict (dict) – dictionary to add keys to
dict
srclist (list) – list to add keys from
list
value (Union[bool, Decimal, float, int, list, str, None]) – final key’s value
Union
bool
Decimal
float
int
str
None