mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
make shlex.shlex and multiprocessing.pool.IMapIterator instantiable (#2120)
Part of #1476.
This commit is contained in:
committed by
Guido van Rossum
parent
c5bc3bd7fa
commit
91af6291b1
@@ -15,8 +15,12 @@ class AsyncResult():
|
||||
def ready(self) -> bool: ...
|
||||
def successful(self) -> bool: ...
|
||||
|
||||
_IMIT = TypeVar('_IMIT', bound=IMapIterator)
|
||||
|
||||
class IMapIterator(Iterable[Any]):
|
||||
def __iter__(self: _IMIT) -> _IMIT: ...
|
||||
def next(self, timeout: Optional[float] = ...) -> Any: ...
|
||||
def __next__(self, timeout: Optional[float] = ...) -> Any: ...
|
||||
|
||||
class Pool(ContextManager[Pool]):
|
||||
def __init__(self, processes: Optional[int] = ...,
|
||||
|
||||
Reference in New Issue
Block a user