ubuiltins: Fix next.

MICROPY_PY_BUILTINS_NEXT2 is not enabled.
This commit is contained in:
Laurens Valk
2022-11-28 13:45:48 +01:00
parent 84d1d7bf3b
commit 81ac996deb
-12
View File
@@ -746,21 +746,9 @@ def min(*args):
"""
@overload
def next(iterator: Iterator) -> Any:
...
@overload
def next(iterator: Iterator, default: Any) -> Any:
...
def next(*args):
"""
Retrieves the next item from the iterator by calling its ``__next__()`` method.
If ``default`` is given, it is returned if the iterator is exhausted,
otherwise ``StopIteration`` is raised.
"""