From 0989cb1cb39267ca6ef06e76ceee096f2dd7409b Mon Sep 17 00:00:00 2001 From: Emanuel Barry Date: Sat, 13 Aug 2016 22:34:38 -0400 Subject: [PATCH] Add FrozenSet to the typing stub files (#474) --- stdlib/2.7/typing.pyi | 2 ++ stdlib/3/typing.pyi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/stdlib/2.7/typing.pyi b/stdlib/2.7/typing.pyi index da952421e..944328fa6 100644 --- a/stdlib/2.7/typing.pyi +++ b/stdlib/2.7/typing.pyi @@ -145,6 +145,8 @@ class AbstractSet(Sized, Iterable[_T_co], Container[_T_co], Generic[_T_co]): # TODO: argument can be any container? def isdisjoint(self, s: AbstractSet[Any]) -> bool: ... +class FrozenSet(AbstractSet[_T], Generic[_T]): ... + class MutableSet(AbstractSet[_T], Generic[_T]): @abstractmethod def add(self, x: _T) -> None: ... diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 84dffe248..582b863d7 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -189,6 +189,8 @@ class AbstractSet(Iterable[_T_co], Container[_T_co], Sized, Generic[_T_co]): # TODO: Argument can be a more general ABC? def isdisjoint(self, s: AbstractSet[Any]) -> bool: ... +class FrozenSet(AbstractSet[_T], Generic[_T]): ... + class MutableSet(AbstractSet[_T], Generic[_T]): @abstractmethod def add(self, x: _T) -> None: ...