Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion xarray/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,12 @@ def dict_equiv(
equals : bool
True if the dictionaries are equal
"""
if len(first) != len(second):
return False
for k in first:
if k not in second or not compat(first[k], second[k]):
return False
return all(k in first for k in second)
return True


def compat_dict_intersection(
Expand Down