Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions stdlib/3/multiprocessing/pool.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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] = ...,
Expand Down
8 changes: 6 additions & 2 deletions stdlib/3/shlex.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Based on http://docs.python.org/3.2/library/shlex.html

from typing import List, Tuple, Any, TextIO, Union, Optional, Iterator
from typing import List, Tuple, Any, TextIO, Union, Optional, Iterable, TypeVar
import sys

def split(s: str, comments: bool = ...,
Expand All @@ -11,7 +11,9 @@ def split(s: str, comments: bool = ...,
# Added in 3.3, use (undocumented) pipes.quote in previous versions.
def quote(s: str) -> str: ...

class shlex(Iterator[str]):
_SLT = TypeVar('_SLT', bound=shlex)

class shlex(Iterable[str]):
commenters = ... # type: str
wordchars = ... # type: str
whitespace = ... # type: str
Expand Down Expand Up @@ -44,3 +46,5 @@ class shlex(Iterator[str]):
def pop_source(self) -> None: ...
def error_leader(self, infile: str = ...,
lineno: int = ...) -> None: ...
def __iter__(self: _SLT) -> _SLT: ...
def __next__(self) -> str: ...