summaryrefslogtreecommitdiff
path: root/dict_utils.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-26 21:35:20 -0800
committerScott <[email protected]>2022-01-26 21:35:20 -0800
commite6f32fdd9b373dfcd100c7accb41f57d83c2f0a1 (patch)
treeeea4985bc43238fbd070c783441f08988f581973 /dict_utils.py
parent36fea7f15ed17150691b5b3ead75450e575229ef (diff)
Ahem. Still running black?
Diffstat (limited to 'dict_utils.py')
-rw-r--r--dict_utils.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/dict_utils.py b/dict_utils.py
index 79c86ed..b1464c6 100644
--- a/dict_utils.py
+++ b/dict_utils.py
@@ -198,9 +198,7 @@ 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.
@@ -211,9 +209,7 @@ def parallel_lists_to_dict(
"""
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))