projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename timer; add a test for OutputContext.
[python_utils.git]
/
dict_utils.py
diff --git
a/dict_utils.py
b/dict_utils.py
index 0a2df252b6e97dbe7baa2c636aab6da4f6da3652..292b933886d7b6b5cc80ec98f358ad1f29ae9abf 100644
(file)
--- a/
dict_utils.py
+++ b/
dict_utils.py
@@
-39,9
+39,9
@@
def raise_on_duplicated_keys(key, v1, v2):
def coalesce(
inputs: Iterator[Dict[Any, Any]],
*,
def coalesce(
inputs: Iterator[Dict[Any, Any]],
*,
- aggregation_function: Callable[[Any, Any
, Any
], Any] = coalesce_by_creating_list
+ aggregation_function: Callable[[Any, Any], Any] = coalesce_by_creating_list
) -> Dict[Any, Any]:
) -> Dict[Any, Any]:
- out = {}
+ out
: Dict[Any, Any]
= {}
for d in inputs:
for key in d:
if key in out:
for d in inputs:
for key in d:
if key in out: