From c38c03bab8c3eefc915a04fbb0f147aac363d85d Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Thu, 14 Oct 2021 10:51:58 +0300 Subject: [PATCH] builtins: next() does not allow keyword args for default (#6169) --- stdlib/@python2/__builtin__.pyi | 2 +- stdlib/@python2/builtins.pyi | 2 +- stdlib/builtins.pyi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/@python2/__builtin__.pyi b/stdlib/@python2/__builtin__.pyi index ebe9cdd95..453a95871 100644 --- a/stdlib/@python2/__builtin__.pyi +++ b/stdlib/@python2/__builtin__.pyi @@ -952,7 +952,7 @@ def min(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ... @overload def next(__i: Iterator[_T]) -> _T: ... @overload -def next(__i: Iterator[_T], default: _VT) -> _T | _VT: ... +def next(__i: Iterator[_T], __default: _VT) -> _T | _VT: ... def oct(__number: int | _SupportsIndex) -> str: ... def open(name: unicode | int, mode: unicode = ..., buffering: int = ...) -> BinaryIO: ... def ord(__c: Text | bytes) -> int: ... diff --git a/stdlib/@python2/builtins.pyi b/stdlib/@python2/builtins.pyi index ebe9cdd95..453a95871 100644 --- a/stdlib/@python2/builtins.pyi +++ b/stdlib/@python2/builtins.pyi @@ -952,7 +952,7 @@ def min(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ... @overload def next(__i: Iterator[_T]) -> _T: ... @overload -def next(__i: Iterator[_T], default: _VT) -> _T | _VT: ... +def next(__i: Iterator[_T], __default: _VT) -> _T | _VT: ... def oct(__number: int | _SupportsIndex) -> str: ... def open(name: unicode | int, mode: unicode = ..., buffering: int = ...) -> BinaryIO: ... def ord(__c: Text | bytes) -> int: ... diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 75da5c830..e86c07df3 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -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]