Add FrozenSet to the typing stub files (#474)

This commit is contained in:
Emanuel Barry
2016-08-13 22:34:38 -04:00
committed by Guido van Rossum
parent 313b584e34
commit 0989cb1cb3
2 changed files with 4 additions and 0 deletions

View File

@@ -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: ...