mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Make mypy aware of IMapUnorderedIterator (#2701)
This commit is contained in:
committed by
Jelle Zijlstra
parent
46ab77eb20
commit
c18b75b2e6
@@ -15,6 +15,8 @@ class IMapIterator(Iterable[Any]):
|
||||
def __iter__(self) -> Iterator[Any]: ...
|
||||
def next(self, timeout: Optional[float] = ...) -> Any: ...
|
||||
|
||||
class IMapUnorderedIterator(IMapIterator): ...
|
||||
|
||||
class Pool(ContextManager[Pool]):
|
||||
def __init__(self, processes: Optional[int] = ...,
|
||||
initializer: Optional[Callable[..., None]] = ...,
|
||||
|
||||
@@ -20,6 +20,8 @@ class IMapIterator(Iterable[_T]):
|
||||
def next(self, timeout: Optional[float] = ...) -> _T: ...
|
||||
def __next__(self, timeout: Optional[float] = ...) -> _T: ...
|
||||
|
||||
class IMapUnorderedIterator(IMapIterator): ...
|
||||
|
||||
class Pool(ContextManager[Pool]):
|
||||
def __init__(self, processes: Optional[int] = ...,
|
||||
initializer: Optional[Callable[..., None]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user