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.
This commit is contained in:
Daniel Li
2018-06-17 21:33:37 -04:00
committed by Jelle Zijlstra
parent 00cda79cf5
commit 1a8455b444
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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: