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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/parallel.py b/sphinx/util/parallel.py
index 2d6b4bddb..2a83d6297 100644
--- a/sphinx/util/parallel.py
+++ b/sphinx/util/parallel.py
@@ -14,7 +14,7 @@ import sys
import time
import traceback
from math import sqrt
-from typing import Any, Callable, Dict, List, Sequence
+from typing import Any, Callable, Dict, List, Optional, Sequence
try:
import multiprocessing
@@ -62,7 +62,7 @@ class ParallelTasks:
# (optional) function performed by each task on the result of main task
self._result_funcs: Dict[int, Callable] = {}
# task arguments
- self._args: Dict[int, List[Any]] = {}
+ self._args: Dict[int, Optional[List[Any]]] = {}
# list of subprocesses (both started and waiting)
self._procs: Dict[int, multiprocessing.Process] = {}
# list of receiving pipe connections of running subprocesses