mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
builtins: next() does not allow keyword args for default (#6169)
This commit is contained in:
@@ -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