Skip to main content

flatten_reply

Flatten node replies.

Convert from a list of replies in this format::

[\{'a@example.com': reply\},
\{'b@example.com': reply\}]

into this format::

\{'a@example.com': reply,
'b@example.com': reply\}
def flatten_reply(
reply: list
) - > dict

Flatten node replies.

Parameters

NameTypeDescription
replylistA list of dictionaries where each dictionary contains node-to-reply mappings to be merged.

Returns

TypeDescription
dictA single dictionary mapping unique node names to their respective replies.