🐛 Fix wrong calculation of deep_dict

This commit is contained in:
Gina Häußge committed 2021-09-15 18:17:42 +02:00
1 parent 99e7d9b141
commit 1f712c70ac
1 file changed
+3 -1
+3 -1
View File
@@ -545,7 +545,9 @@ class HierarchicalChainMap(ChainMap):
def deep_dict(self):
def deep_dict_inner(root):
return {
key: deep_dict_inner(root[key]) if isinstance(value, dict) else value
key: deep_dict_inner(self.__class__._get_next(key, root))
if isinstance(value, dict)
else value
for key, value in root.items()
}