mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Update types for ThreadPoolExecutor for py3.6 (#1414)
* Update types for ThreadPoolExecutor for py3.6 * Removed Optional from ThreadPoolExecutor thread_name_prefix argument
This commit is contained in:
committed by
Łukasz Langa
parent
1c8498228d
commit
a8dea5e05c
@@ -1,5 +1,10 @@
|
||||
from typing import Optional
|
||||
from ._base import Executor, Future
|
||||
import sys
|
||||
|
||||
class ThreadPoolExecutor(Executor):
|
||||
def __init__(self, max_workers: Optional[int] = ...) -> None: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
def __init__(self, max_workers: Optional[int] = ...,
|
||||
thread_name_prefix: str = ...) -> None: ...
|
||||
else:
|
||||
def __init__(self, max_workers: Optional[int] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user