mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add FrozenSet to the typing stub files (#474)
This commit is contained in:
committed by
Guido van Rossum
parent
313b584e34
commit
0989cb1cb3
@@ -189,6 +189,8 @@ class AbstractSet(Iterable[_T_co], Container[_T_co], Sized, Generic[_T_co]):
|
||||
# TODO: Argument can be a more general ABC?
|
||||
def isdisjoint(self, s: AbstractSet[Any]) -> bool: ...
|
||||
|
||||
class FrozenSet(AbstractSet[_T], Generic[_T]): ...
|
||||
|
||||
class MutableSet(AbstractSet[_T], Generic[_T]):
|
||||
@abstractmethod
|
||||
def add(self, x: _T) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user