Skip to content

Commit 0989cb1

Browse files
Vgr255gvanrossum
authored andcommitted
Add FrozenSet to the typing stub files (#474)
1 parent 313b584 commit 0989cb1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

stdlib/2.7/typing.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ class AbstractSet(Sized, Iterable[_T_co], Container[_T_co], Generic[_T_co]):
145145
# TODO: argument can be any container?
146146
def isdisjoint(self, s: AbstractSet[Any]) -> bool: ...
147147

148+
class FrozenSet(AbstractSet[_T], Generic[_T]): ...
149+
148150
class MutableSet(AbstractSet[_T], Generic[_T]):
149151
@abstractmethod
150152
def add(self, x: _T) -> None: ...

stdlib/3/typing.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ class AbstractSet(Iterable[_T_co], Container[_T_co], Sized, Generic[_T_co]):
189189
# TODO: Argument can be a more general ABC?
190190
def isdisjoint(self, s: AbstractSet[Any]) -> bool: ...
191191

192+
class FrozenSet(AbstractSet[_T], Generic[_T]): ...
193+
192194
class MutableSet(AbstractSet[_T], Generic[_T]):
193195
@abstractmethod
194196
def add(self, x: _T) -> None: ...

0 commit comments

Comments
 (0)