From 2100a11ffeca76dc96a644c44de0b509c6665faa Mon Sep 17 00:00:00 2001 From: Adam Janovsky Date: Fri, 11 Feb 2022 16:39:23 +0100 Subject: finalize type hints in helpers --- sec_certs/parallel_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sec_certs/parallel_processing.py') diff --git a/sec_certs/parallel_processing.py b/sec_certs/parallel_processing.py index 7a150070..6e1c28a6 100644 --- a/sec_certs/parallel_processing.py +++ b/sec_certs/parallel_processing.py @@ -1,6 +1,6 @@ import time from multiprocessing.pool import ThreadPool -from typing import Callable, Iterable, Optional, Union +from typing import Any, Callable, Iterable, List, Optional, Union from billiard.pool import Pool @@ -16,7 +16,7 @@ def process_parallel( progress_bar: bool = True, unpack: bool = False, progress_bar_desc: Optional[str] = None, -): +) -> List[Any]: pool: Union[Pool, ThreadPool] = ThreadPool(max_workers) if use_threading else Pool(max_workers) results = ( -- cgit v1.3.1