diff options
| author | Scott <[email protected]> | 2022-01-26 21:34:26 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-26 21:34:26 -0800 |
| commit | 36fea7f15ed17150691b5b3ead75450e575229ef (patch) | |
| tree | 883ec076d7abe7683231244d27ca2c603ffcf031 /dict_utils.py | |
| parent | a0c6b6c28214e0f5167bc25690ada5d83d933086 (diff) | |
Ran black code formatter on everything.
Diffstat (limited to 'dict_utils.py')
| -rw-r--r-- | dict_utils.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dict_utils.py b/dict_utils.py index b1464c6..79c86ed 100644 --- a/dict_utils.py +++ b/dict_utils.py @@ -198,7 +198,9 @@ def min_key(d: Dict[Any, Any]) -> Any: return min(d.keys()) -def parallel_lists_to_dict(keys: List[Any], values: List[Any]) -> Dict[Any, Any]: +def parallel_lists_to_dict( + keys: List[Any], values: List[Any] +) -> Dict[Any, Any]: """Given two parallel lists (keys and values), create and return a dict. @@ -209,7 +211,9 @@ def parallel_lists_to_dict(keys: List[Any], values: List[Any]) -> Dict[Any, Any] """ if len(keys) != len(values): - raise Exception("Parallel keys and values lists must have the same length") + raise Exception( + "Parallel keys and values lists must have the same length" + ) return dict(zip(keys, values)) |
