Skip to main content

lpmerge

In place left precedent dictionary merge.

Keeps values from L, if the value in R is :const:None.

def lpmerge(
L: Mapping,
R: Mapping
) - > Mapping

In place left precedent dictionary merge. Keeps values from L, if the value in R is :const:None.

Parameters

NameTypeDescription
LMappingThe base dictionary to be updated in-place; its values are preserved if the corresponding value in R is None
RMappingThe source dictionary containing updates to be merged into L

Returns

TypeDescription
MappingThe modified left dictionary (L) after merging non-None values from the right dictionary (R)