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
| Name | Type | Description |
|---|---|---|
| reply | list | A list of dictionaries where each dictionary contains node-to-reply mappings to be merged. |
Returns
| Type | Description |
|---|---|
dict | A single dictionary mapping unique node names to their respective replies. |