builtins.pyi: Use two type vars (#3291)

Fixes: #3201
This commit is contained in:
Utkarsh Gupta
2019-10-04 03:45:41 +05:30
committed by Sebastian Rittau
parent 9a1d205f34
commit fa571fb224
2 changed files with 6 additions and 2 deletions

View File

@@ -1189,7 +1189,9 @@ else:
@overload
def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...
@overload
def iter(__function: Callable[[], _T], __sentinel: _T) -> Iterator[_T]: ...
def iter(__function: Callable[[], Optional[_T]], __sentinel: None) -> Iterator[_T]: ...
@overload
def iter(__function: Callable[[], Any], __sentinel: Any) -> Iterator[Any]: ...
def isinstance(__o: object, __t: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
def issubclass(__cls: type, __classinfo: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
def len(__o: Sized) -> int: ...