mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
builtins: next() does not allow keyword args for default (#6169)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user