Skip to content

Commit

Permalink
Add type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Jul 29, 2023
1 parent eee9b92 commit 43b25aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nthp_api/nthp_build/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def run_cpu_task(task: Callable, error_queue: Queue):

def run_cpu_tasks_in_parallel(tasks: list[Callable]):
log.info("Running %d CPU tasks in parallel", len(tasks))
error_queue = Queue()
error_queue: Queue = Queue()
running_tasks = [
Process(target=run_cpu_task, args=(task, error_queue)) for task in tasks
]
Expand Down

0 comments on commit 43b25aa

Please sign in to comment.