Add __init__ to OrderedSet (#381)

This commit is contained in:
Alexander Viklund
2020-06-02 12:56:11 +02:00
committed by GitHub
parent 8d2600136a
commit dac2b31fb2

View File

@@ -22,6 +22,7 @@ _V = TypeVar("_V")
class OrderedSet(MutableSet[_K]): class OrderedSet(MutableSet[_K]):
dict: Dict[_K, None] = ... dict: Dict[_K, None] = ...
def __init__(self, iterable: Optional[Iterable[_K]] = ...) -> None: ...
def __contains__(self, item: object) -> bool: ... def __contains__(self, item: object) -> bool: ...
def __iter__(self) -> Iterator[_K]: ... def __iter__(self) -> Iterator[_K]: ...
def __len__(self) -> int: ... def __len__(self) -> int: ...