Make mypy aware of IMapUnorderedIterator (#2701)

This commit is contained in:
Juan Gonzalez
2018-12-20 22:41:58 -05:00
committed by Jelle Zijlstra
parent 46ab77eb20
commit c18b75b2e6
2 changed files with 4 additions and 0 deletions

View File

@@ -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]] = ...,

View File

@@ -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]] = ...,