Fix frozenset (#979)

This commit is contained in:
Ivan Levkivskyi
2017-03-10 22:59:32 +01:00
committed by Guido van Rossum
parent 85866fe1b9
commit bd5b33f3b1
2 changed files with 2 additions and 2 deletions

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

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