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

@@ -32,6 +32,7 @@ List = TypeAlias(object)
Dict = TypeAlias(object)
DefaultDict = TypeAlias(object)
Set = TypeAlias(object)
FrozenSet = TypeAlias(object)
Counter = TypeAlias(object)
Deque = TypeAlias(object)
if sys.version_info >= (3, 3):
@@ -240,8 +241,6 @@ class AbstractSet(_Collection[_T_co], Generic[_T_co]):
# TODO: Argument can be a more general ABC?
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: ...