mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add FrozenSet to the typing stub files (#474)
This commit is contained in:
committed by
Guido van Rossum
parent
313b584e34
commit
0989cb1cb3
@@ -145,6 +145,8 @@ class AbstractSet(Sized, Iterable[_T_co], Container[_T_co], Generic[_T_co]):
|
||||
# TODO: argument can be any container?
|
||||
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: ...
|
||||
|
||||
@@ -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