From b9144094df9bd767f8d17c6f8c650ae863f7b84a Mon Sep 17 00:00:00 2001 From: Alexander Viklund Date: Tue, 2 Jun 2020 01:49:14 +0200 Subject: [PATCH] Add __init__ to OrderedSet --- django-stubs/utils/datastructures.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/django-stubs/utils/datastructures.pyi b/django-stubs/utils/datastructures.pyi index e9778cf36..7b5f7b2d1 100644 --- a/django-stubs/utils/datastructures.pyi +++ b/django-stubs/utils/datastructures.pyi @@ -22,6 +22,7 @@ _V = TypeVar("_V") class OrderedSet(MutableSet[_K]): dict: Dict[_K, None] = ... + def __init__(self, iterable: Optional[Iterable[_K]] = ...) -> None: ... def __contains__(self, item: object) -> bool: ... def __iter__(self) -> Iterator[_K]: ... def __len__(self) -> int: ...