Fix frozenset (#979)

This commit is contained in:
Ivan Levkivskyi authored and Guido van Rossum committed 2017-03-10 13:59:32 -08:00
1 parent 85866fe1b9
commit bd5b33f3b1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -619,7 +619,7 @@ class set(MutableSet[_T], Generic[_T]):
def __gt__(self, s: AbstractSet[Any]) -> bool: ...
# TODO more set operations
class frozenset(FrozenSet[_T], Generic[_T]):
class frozenset(AbstractSet[_T], Generic[_T]):
@overload
def __init__(self) -> None: ...
@overload
+1 -1
View File
@@ -666,7 +666,7 @@ class set(MutableSet[_T], Generic[_T]):
def __gt__(self, s: AbstractSet[Any]) -> bool: ...
# TODO more set operations
class frozenset(FrozenSet[_T], Generic[_T]):
class frozenset(AbstractSet[_T], Generic[_T]):
def __init__(self, iterable: Iterable[_T] = ...) -> None: ...
def copy(self) -> frozenset[_T]: ...
def difference(self, *s: Iterable[Any]) -> frozenset[_T]: ...