🐛 Fix wrong calculation of deep_dict
This commit is contained in:
1 parent
99e7d9b141
commit
1f712c70ac
1 file changed
+3
-1
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user