From 659c3f21c743b73c53c160e8cb276771d0a00f58 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Fri, 15 Jun 2018 14:09:32 -0400 Subject: [PATCH] Add thread_name_prefix to ThreadPoolExecutor stub 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 88a45a3e070a..4f5b501b02fa 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 88a45a3e070a..4f5b501b02fa 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: