Commit 4a3f371d authored by Tom Niget's avatar Tom Niget

Fix signature of next()

parent 235ae019
from typing import Self, TypeVar, Generic, Protocol
from typing import Self, TypeVar, Generic, Protocol, Optional
class object:
def __eq__(self, other: Self) -> bool: ...
......@@ -98,7 +98,7 @@ def iter(x: Iterable[U]) -> Iterator[U]:
assert iter
def next(it: Iterator[U], default: None) -> U:
def next(it: Iterator[U], default: Optional[U] = None) -> U:
...
# what happens with multiple functions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment