mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
committed by
Jelle Zijlstra
parent
00cda79cf5
commit
1a8455b444
@@ -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:
|
||||
|
||||
2
third_party/2/concurrent/futures/thread.pyi
vendored
2
third_party/2/concurrent/futures/thread.pyi
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user