mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Replace frozenset with FrozenSet (#1057)
This commit is contained in:
committed by
Jelle Zijlstra
parent
25464cf0a7
commit
ed9f70c738
@@ -32,6 +32,7 @@ List = TypeAlias(object)
|
||||
Dict = TypeAlias(object)
|
||||
DefaultDict = TypeAlias(object)
|
||||
Set = TypeAlias(object)
|
||||
FrozenSet = TypeAlias(object)
|
||||
Counter = TypeAlias(object)
|
||||
Deque = TypeAlias(object)
|
||||
if sys.version_info >= (3, 3):
|
||||
@@ -240,8 +241,6 @@ class AbstractSet(_Collection[_T_co], Generic[_T_co]):
|
||||
# TODO: Argument can be a more general ABC?
|
||||
def isdisjoint(self, s: AbstractSet[Any]) -> bool: ...
|
||||
|
||||
class FrozenSet(AbstractSet[_T_co], Generic[_T_co]): ...
|
||||
|
||||
class MutableSet(AbstractSet[_T], Generic[_T]):
|
||||
@abstractmethod
|
||||
def add(self, x: _T) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user