Skip to content

Commit 86fce61

Browse files
committed
Use MutableMapping instead of dict
1 parent f9c142b commit 86fce61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpath/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def f(obj, pair, counter):
8080
parent = segments.get(obj, path_segments[:-1])
8181

8282
# Deletion behavior depends on parent type
83-
if isinstance(parent, dict):
83+
if isinstance(parent, MutableMapping):
8484
del parent[key]
8585

8686
else:

0 commit comments

Comments
 (0)