diff --git a/stdlib/3/concurrent/futures/thread.pyi b/stdlib/3/concurrent/futures/thread.pyi index 4b9a8bf6dfbd..e8116c6da791 100644 --- a/stdlib/3/concurrent/futures/thread.pyi +++ b/stdlib/3/concurrent/futures/thread.pyi @@ -1,3 +1,4 @@ +import queue import sys from typing import Any, Callable, Generic, Iterable, Mapping, Optional, Tuple, TypeVar @@ -13,6 +14,10 @@ if sys.version_info >= (3, 9): _S = TypeVar("_S") class ThreadPoolExecutor(Executor): + if sys.version_info >= (3, 7): + _work_queue: queue.SimpleQueue + else: + _work_queue: queue.Queue if sys.version_info >= (3, 7): def __init__( self,