mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Fix frozenset (#979)
This commit is contained in:
committed by
Guido van Rossum
parent
85866fe1b9
commit
bd5b33f3b1
@@ -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
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user