builtins: next() does not allow keyword args for default (#6169)

This commit is contained in:
Marti Raudsepp
2021-10-14 10:51:58 +03:00
committed by GitHub
parent b2082ce559
commit c38c03bab8
3 changed files with 3 additions and 3 deletions

View File

@@ -1155,7 +1155,7 @@ def min(__iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThan], de
@overload
def next(__i: SupportsNext[_T]) -> _T: ...
@overload
def next(__i: SupportsNext[_T], default: _VT) -> _T | _VT: ...
def next(__i: SupportsNext[_T], __default: _VT) -> _T | _VT: ...
def oct(__number: int | SupportsIndex) -> str: ...
_OpenFile = Union[StrOrBytesPath, int]