From 1a8455b444e9866e824da72c5c5ee59b0e4a4f66 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Sun, 17 Jun 2018 21:33:37 -0400 Subject: [PATCH] Add thread_name_prefix to ThreadPoolExecutor stub (#2249) The thread_name_prefix argument of ThreadPoolExecutor.__init__ was added to the Python 2 backport in agronholm/pythonfutures#64. --- stdlib/3/concurrent/futures/thread.pyi | 2 +- third_party/2/concurrent/futures/thread.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3/concurrent/futures/thread.pyi b/stdlib/3/concurrent/futures/thread.pyi index 88a45a3e0..4f5b501b0 100644 --- a/stdlib/3/concurrent/futures/thread.pyi +++ b/stdlib/3/concurrent/futures/thread.pyi @@ -3,7 +3,7 @@ from ._base import Executor, Future import sys class ThreadPoolExecutor(Executor): - if sys.version_info >= (3, 6): + if sys.version_info >= (3, 6) or sys.version_info < (3,): def __init__(self, max_workers: Optional[int] = ..., thread_name_prefix: str = ...) -> None: ... else: diff --git a/third_party/2/concurrent/futures/thread.pyi b/third_party/2/concurrent/futures/thread.pyi index 88a45a3e0..4f5b501b0 100644 --- a/third_party/2/concurrent/futures/thread.pyi +++ b/third_party/2/concurrent/futures/thread.pyi @@ -3,7 +3,7 @@ from ._base import Executor, Future import sys class ThreadPoolExecutor(Executor): - if sys.version_info >= (3, 6): + if sys.version_info >= (3, 6) or sys.version_info < (3,): def __init__(self, max_workers: Optional[int] = ..., thread_name_prefix: str = ...) -> None: ... else: