We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3572db5 commit db94e23Copy full SHA for db94e23
1 file changed
dpath/util.py
@@ -286,6 +286,9 @@ def are_both_mutable(o1, o2):
286
return False
287
288
def merger(dst, src, _segments=()):
289
+ if not isinstance(dst, dict) or not isinstance(src, dict):
290
+ raise ValueError("Merger function supports dict-like objects only")
291
+
292
for key, found in dpath.segments.kvs(src):
293
# Our current path in the source.
294
segments = _segments + (key,)
0 commit comments