Skip to content

Commit 854e922

Browse files
committed
Rename ordered_dict_union -> compat_dict_union
Do not use OrderedDicts any more, so name did not make sense.
1 parent 23df58e commit 854e922

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

xarray/core/utils.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ def ordered_dict_intersection(
361361
Binary operator to determine if two values are compatible. By default,
362362
checks for equivalence.
363363
364+
# TODO: Rename to compat_dict_intersection, as we do not use OrderedDicts
365+
# any more.
366+
364367
Returns
365368
-------
366369
intersection : dict
@@ -371,15 +374,15 @@ def ordered_dict_intersection(
371374
return new_dict
372375

373376

374-
def ordered_dict_union(
377+
def compat_dict_union(
375378
first_dict: Mapping[K, V],
376379
second_dict: Mapping[K, V],
377380
compat: Callable[[V, V], bool] = equivalent,
378381
) -> MutableMapping[K, V]:
379382
"""Return the union of two dictionaries as a new dictionary.
380383
381-
An exception is raised if any keys are found in both dictionaries and the values are
382-
not compatible.
384+
An exception is raised if any keys are found in both dictionaries and the
385+
values are not compatible.
383386
384387
Parameters
385388
----------

0 commit comments

Comments
 (0)