summaryrefslogtreecommitdiff
path: root/sphinx/util/parallel.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/parallel.py')
-rw-r--r--sphinx/util/parallel.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/util/parallel.py b/sphinx/util/parallel.py
index ed73ee4d6..7ad7f81e7 100644
--- a/sphinx/util/parallel.py
+++ b/sphinx/util/parallel.py
@@ -60,15 +60,15 @@ class ParallelTasks:
def __init__(self, nproc: int) -> None:
self.nproc = nproc
# (optional) function performed by each task on the result of main task
- self._result_funcs = {} # type: Dict[int, Callable]
+ self._result_funcs: Dict[int, Callable] = {}
# task arguments
- self._args = {} # type: Dict[int, List[Any]]
+ self._args: Dict[int, List[Any]] = {}
# list of subprocesses (both started and waiting)
- self._procs = {} # type: Dict[int, multiprocessing.Process]
+ self._procs: Dict[int, multiprocessing.Process] = {}
# list of receiving pipe connections of running subprocesses
- self._precvs = {} # type: Dict[int, Any]
+ self._precvs: Dict[int, Any] = {}
# list of receiving pipe connections of waiting subprocesses
- self._precvsWaiting = {} # type: Dict[int, Any]
+ self._precvsWaiting: Dict[int, Any] = {}
# number of working subprocesses
self._pworking = 0
# task number of each subprocess