mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-06 23:57:49 +00:00
chore(Linter): reformatted code with black (#211)
* chore(Linter): reformatted code with black * Create black.yaml
This commit is contained in:
committed by
GitHub
parent
f3fee4a4e1
commit
8dd2d88740
+2
-2
@@ -1,8 +1,8 @@
|
||||
from tqdm import tqdm
|
||||
import ray
|
||||
|
||||
def parallel_compute_with_bar(computations) -> list:
|
||||
|
||||
def parallel_compute_with_bar(computations) -> list:
|
||||
def to_iterator(obj_ids):
|
||||
while obj_ids:
|
||||
done, obj_ids = ray.wait(obj_ids)
|
||||
@@ -12,4 +12,4 @@ def parallel_compute_with_bar(computations) -> list:
|
||||
for x in tqdm(to_iterator(computations), total=len(computations)):
|
||||
ret.append(x)
|
||||
|
||||
return ret
|
||||
return ret
|
||||
|
||||
Reference in New Issue
Block a user