8000 builtins.pyi: Use two type vars · python/typeshed@2e5873b · GitHub
[go: up one dir, main page]

Skip to content< 8000 /a>

Commit 2e5873b

Browse files
committed
builtins.pyi: Use two type vars
Fixes: #3201
1 parent c32e1e2 commit 2e5873b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/2/__builtin__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ else:
11891189
@overload
11901190
def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...
11911191
@overload
1192-
def iter(__function: Callable[[], _T], __sentinel: _T) -> Iterator[_T]: ...
1192+
def iter(__function: Callable[[], Union[_T, _U]], __sentinel: _U) -> Iterator[_T]: ...
11931193
def isinstance(__o: object, __t: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
11941194
def issubclass(__cls: type, __classinfo: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
11951195
def len(__o: Sized) -> int: ...

stdlib/2and3/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ else:
11891189
@overload
11901190
def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...
11911191
@overload
1192-
def iter(__function: Callable[[], _T], __sentinel: _T) -> Iterator[_T]: ...
1192+
def iter(__function: Callable[[], Union[_T, _U]], __sentinel: _U) -> Iterator[_T]: ...
11931193
def isinstance(__o: object, __t: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
11941194
def issubclass(__cls: type, __classinfo: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
11951195
def len(__o: Sized) -> int: ...

0 commit comments

Comments
 (0)
0