summaryrefslogtreecommitdiff
path: root/sphinx/util/parallel.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-04-10 00:32:26 +0900
committerGitHub <noreply@github.com>2021-04-10 00:32:26 +0900
commitfe6d95e4294f47d61f1a04a1f8c6567c9802f504 (patch)
tree33a7143bf1dcf60830c2e1fcd4b396175af45e64 /sphinx/util/parallel.py
parent7327e56dff865d4766c43d46405ae827e10fd6c3 (diff)
parentce5d66e618c111b115a9bb7b1401a26483fcfa8f (diff)
downloadsphinx-git-fe6d95e4294f47d61f1a04a1f8c6567c9802f504.tar.gz
Merge branch 'master' into patch-1
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