@@ -704,6 +704,8 @@ class AbstractSet(Collection[_T_co]):
704704 def __contains__ (self , x : object ) -> bool : ...
705705 def _hash (self ) -> int : ...
706706 # Mixin methods
707+ @classmethod
708+ def _from_iterable (cls , it : Iterable [_S ]) -> AbstractSet [_S ]: ...
707709 def __le__ (self , other : AbstractSet [Any ]) -> bool : ...
708710 def __lt__ (self , other : AbstractSet [Any ]) -> bool : ...
709711 def __gt__ (self , other : AbstractSet [Any ]) -> bool : ...
@@ -736,6 +738,8 @@ class MappingView(Sized):
736738
737739class ItemsView (MappingView , AbstractSet [tuple [_KT_co , _VT_co ]], Generic [_KT_co , _VT_co ]):
738740 def __init__ (self , mapping : SupportsGetItemViewable [_KT_co , _VT_co ]) -> None : ... # undocumented
741+ @classmethod
742+ def _from_iterable (cls , it : Iterable [_S ]) -> set [_S ]: ...
739743 def __and__ (self , other : Iterable [Any ]) -> set [tuple [_KT_co , _VT_co ]]: ...
740744 def __rand__ (self , other : Iterable [_T ]) -> set [_T ]: ...
741745 def __contains__ (self , item : tuple [object , object ]) -> bool : ... # type: ignore[override]
@@ -749,6 +753,8 @@ class ItemsView(MappingView, AbstractSet[tuple[_KT_co, _VT_co]], Generic[_KT_co,
749753
750754class KeysView (MappingView , AbstractSet [_KT_co ]):
751755 def __init__ (self , mapping : Viewable [_KT_co ]) -> None : ... # undocumented
756+ @classmethod
757+ def _from_iterable (cls , it : Iterable [_S ]) -> set [_S ]: ...
752758 def __and__ (self , other : Iterable [Any ]) -> set [_KT_co ]: ...
753759 def __rand__ (self , other : Iterable [_T ]) -> set [_T ]: ...
754760 def __contains__ (self , key : object ) -> bool : ...
0 commit comments