Replace frozenset with FrozenSet (#1057)

This commit is contained in:
Ivan Levkivskyi
2017-03-21 15:52:34 +01:00
committed by Jelle Zijlstra
parent 25464cf0a7
commit ed9f70c738
4 changed files with 20 additions and 22 deletions

View File

@@ -31,6 +31,7 @@ List = TypeAlias(object)
Dict = TypeAlias(object)
DefaultDict = TypeAlias(object)
Set = TypeAlias(object)
FrozenSet = TypeAlias(object)
Counter = TypeAlias(object)
Deque = TypeAlias(object)
@@ -164,8 +165,6 @@ 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_co], Generic[_T_co]): ...
class MutableSet(AbstractSet[_T], Generic[_T]):
@abstractmethod
def add(self, x: _T) -> None: ...