diff options
| author | Scott Gasch <[email protected]> | 2021-07-11 10:16:07 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-07-11 10:16:07 -0700 |
| commit | a838c154135b2420d9047a101caf24a2c9f593c2 (patch) | |
| tree | fbb0f6a0e66b4826352003d67f6e20bbcda0dda4 /dict_utils.py | |
| parent | 7d7a3ce0abb26766e82c6dfed8a196baa63b736a (diff) | |
Random cleanups and type safety. Created ml subdir.
Diffstat (limited to 'dict_utils.py')
| -rw-r--r-- | dict_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dict_utils.py b/dict_utils.py index 0a2df25..292b933 100644 --- 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]], *, - aggregation_function: Callable[[Any, Any, Any], Any] = coalesce_by_creating_list + aggregation_function: Callable[[Any, Any], Any] = coalesce_by_creating_list ) -> Dict[Any, Any]: - out = {} + out: Dict[Any, Any] = {} for d in inputs: for key in d: if key in out: |
