@@ -5,7 +5,7 @@ import collections # noqa: F401 # pyright: ignore[reportUnusedImport]
5
5
import sys
6
6
import typing_extensions
7
7
from _collections_abc import dict_items , dict_keys , dict_values
8
- from _typeshed import IdentityFunction , ReadableBuffer , SupportsKeysAndGetItem
8
+ from _typeshed import IdentityFunction , ReadableBuffer , SupportsGetItemViewable , SupportsKeysAndGetItem , Viewable
9
9
from abc import ABCMeta , abstractmethod
10
10
from re import Match as Match , Pattern as Pattern
11
11
from types import (
@@ -703,11 +703,11 @@ class MutableSet(AbstractSet[_T]):
703
703
def __isub__ (self , it : AbstractSet [Any ]) -> typing_extensions .Self : ...
704
704
705
705
class MappingView (Sized ):
706
- def __init__ (self , mapping : Mapping [ Any , Any ] ) -> None : ... # undocumented
706
+ def __init__ (self , mapping : Sized ) -> None : ... # undocumented
707
707
def __len__ (self ) -> int : ...
708
708
709
709
class ItemsView (MappingView , AbstractSet [tuple [_KT_co , _VT_co ]], Generic [_KT_co , _VT_co ]):
710
- def __init__ (self , mapping : Mapping [_KT_co , _VT_co ]) -> None : ... # undocumented
710
+ def __init__ (self , mapping : SupportsGetItemViewable [_KT_co , _VT_co ]) -> None : ... # undocumented
711
711
def __and__ (self , other : Iterable [Any ]) -> set [tuple [_KT_co , _VT_co ]]: ...
712
712
def __rand__ (self , other : Iterable [_T ]) -> set [_T ]: ...
713
713
def __contains__ (self , item : tuple [object , object ]) -> bool : ... # type: ignore[override]
@@ -720,7 +720,7 @@ class ItemsView(MappingView, AbstractSet[tuple[_KT_co, _VT_co]], Generic[_KT_co,
720
720
def __rxor__ (self , other : Iterable [_T ]) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
721
721
722
722
class KeysView (MappingView , AbstractSet [_KT_co ]):
723
- def __init__ (self , mapping : Mapping [_KT_co , Any ]) -> None : ... # undocumented
723
+ def __init__ (self , mapping : Viewable [_KT_co ]) -> None : ... # undocumented
724
724
def __and__ (self , other : Iterable [Any ]) -> set [_KT_co ]: ...
725
725
def __rand__ (self , other : Iterable [_T ]) -> set [_T ]: ...
726
726
def __contains__ (self , key : object ) -> bool : ...
@@ -733,7 +733,7 @@ class KeysView(MappingView, AbstractSet[_KT_co]):
733
733
def __rxor__ (self , other : Iterable [_T ]) -> set [_KT_co | _T ]: ...
734
734
735
735
class ValuesView (MappingView , Collection [_VT_co ]):
736
- def __init__ (self , mapping : Mapping [Any , _VT_co ]) -> None : ... # undocumented
736
+ def __init__ (self , mapping : SupportsGetItemViewable [Any , _VT_co ]) -> None : ... # undocumented
737
737
def __contains__ (self , value : object ) -> bool : ...
738
738
def __iter__ (self ) -> Iterator [_VT_co ]: ...
739
739
0 commit comments