Make logging optionally remove global handlers added by (shitty) pip
[python_utils.git] / list_utils.py
index 992f1ae4207228711c17573bb779cc0aaae2d0f8..88c436be24f88e73093f2c6f509a157e181ed6f9 100644 (file)
@@ -216,6 +216,7 @@ def permute(seq: Sequence[Any]):
     """
     yield from _permute(seq, "")
 
+
 def _permute(seq: Sequence[Any], path):
     if len(seq) == 0:
         yield path
@@ -228,7 +229,7 @@ def _permute(seq: Sequence[Any], path):
         yield from _permute(cdr, path + car)
 
 
-def binary_search(lst: Sequence[Any], target:Any) -> Tuple[bool, int]:
+def binary_search(lst: Sequence[Any], target: Any) -> Tuple[bool, int]:
     """Performs a binary search on lst (which must already be sorted).
     Returns a Tuple composed of a bool which indicates whether the
     target was found and an int which indicates the index closest to