File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,9 @@ def ordered_dict_intersection(
361
361
Binary operator to determine if two values are compatible. By default,
362
362
checks for equivalence.
363
363
364
+ # TODO: Rename to compat_dict_intersection, as we do not use OrderedDicts
365
+ # any more.
366
+
364
367
Returns
365
368
-------
366
369
intersection : dict
@@ -371,15 +374,15 @@ def ordered_dict_intersection(
371
374
return new_dict
372
375
373
376
374
- def ordered_dict_union (
377
+ def compat_dict_union (
375
378
first_dict : Mapping [K , V ],
376
379
second_dict : Mapping [K , V ],
377
380
compat : Callable [[V , V ], bool ] = equivalent ,
378
381
) -> MutableMapping [K , V ]:
379
382
"""Return the union of two dictionaries as a new dictionary.
380
383
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.
383
386
384
387
Parameters
385
388
----------
You can’t perform that action at this time.
0 commit comments