projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ran black code formatter on everything.
[python_utils.git]
/
dict_utils.py
diff --git
a/dict_utils.py
b/dict_utils.py
index b1464c6bb9967ce4efa48318a288babd0ff322e9..79c86edf286f2c9ea9983906385365199be74892 100644
(file)
--- a/
dict_utils.py
+++ b/
dict_utils.py
@@
-198,7
+198,9
@@
def min_key(d: Dict[Any, Any]) -> Any:
return min(d.keys())
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.
"""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):
"""
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))
return dict(zip(keys, values))