From 9c497bf15c597921bb1c5509236f50414bbc4df4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 9 Jun 2019 14:04:19 +0200 Subject: [PATCH] Improve docstring for deep_merge_dicts --- freqtrade/misc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/misc.py b/freqtrade/misc.py index 9d37214e4..460e20e91 100644 --- a/freqtrade/misc.py +++ b/freqtrade/misc.py @@ -117,6 +117,8 @@ def format_ms_time(date: int) -> str: def deep_merge_dicts(source, destination): """ + Values from Source override destination, destination is returned (and modified!!) + Sample: >>> a = { 'first' : { 'rows' : { 'pass' : 'dog', 'number' : '1' } } } >>> b = { 'first' : { 'rows' : { 'fail' : 'cat', 'number' : '5' } } } >>> merge(b, a) == { 'first' : { 'rows' : { 'pass' : 'dog', 'fail' : 'cat', 'number' : '5' } } }