@@ -655,78 +655,78 @@ class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
655655class Sequence (Reversible [_T_co ], Collection [_T_co ]):
656656 @overload
657657 @abstractmethod
658- def __getitem__ (self , index : int ) -> _T_co : ...
658+ def __getitem__ (self , index : int , / ) -> _T_co : ...
659659 @overload
660660 @abstractmethod
661- def __getitem__ (self , index : slice [int | None ]) -> Sequence [_T_co ]: ...
661+ def __getitem__ (self , index : slice [int | None ], / ) -> Sequence [_T_co ]: ...
662662 # Mixin methods
663- def index (self , value : Any , start : int = 0 , stop : int = ...) -> int : ...
664- def count (self , value : Any ) -> int : ...
665- def __contains__ (self , value : object ) -> bool : ...
663+ def index (self , value : Any , start : int = 0 , stop : int = ..., / ) -> int : ...
664+ def count (self , value : Any , / ) -> int : ...
665+ def __contains__ (self , value : object , / ) -> bool : ...
666666 def __iter__ (self ) -> Iterator [_T_co ]: ...
667667 def __reversed__ (self ) -> Iterator [_T_co ]: ...
668668
669669class MutableSequence (Sequence [_T ]):
670670 @abstractmethod
671- def insert (self , index : int , value : _T ) -> None : ...
671+ def insert (self , index : int , value : _T , / ) -> None : ...
672672 @overload
673673 @abstractmethod
674- def __getitem__ (self , index : int ) -> _T : ...
674+ def __getitem__ (self , index : int , / ) -> _T : ...
675675 @overload
676676 @abstractmethod
677- def __getitem__ (self , index : slice [int | None ]) -> MutableSequence [_T ]: ...
677+ def __getitem__ (self , index : slice [int | None ], / ) -> MutableSequence [_T ]: ...
678678 @overload
679679 @abstractmethod
680- def __setitem__ (self , index : int , value : _T ) -> None : ...
680+ def __setitem__ (self , index : int , value : _T , / ) -> None : ...
681681 @overload
682682 @abstractmethod
683- def __setitem__ (self , index : slice [int | None ], value : Iterable [_T ]) -> None : ...
683+ def __setitem__ (self , index : slice [int | None ], value : Iterable [_T ], / ) -> None : ...
684684 @overload
685685 @abstractmethod
686- def __delitem__ (self , index : int ) -> None : ...
686+ def __delitem__ (self , index : int , / ) -> None : ...
687687 @overload
688688 @abstractmethod
689- def __delitem__ (self , index : slice [int | None ]) -> None : ...
689+ def __delitem__ (self , index : slice [int | None ], / ) -> None : ...
690690 # Mixin methods
691- def append (self , value : _T ) -> None : ...
691+ def append (self , value : _T , / ) -> None : ...
692692 def clear (self ) -> None : ...
693- def extend (self , values : Iterable [_T ]) -> None : ...
693+ def extend (self , values : Iterable [_T ], / ) -> None : ...
694694 def reverse (self ) -> None : ...
695- def pop (self , index : int = - 1 ) -> _T : ...
696- def remove (self , value : _T ) -> None : ...
697- def __iadd__ (self , values : Iterable [_T ]) -> typing_extensions .Self : ...
695+ def pop (self , index : int = - 1 , / ) -> _T : ...
696+ def remove (self , value : _T , / ) -> None : ...
697+ def __iadd__ (self , values : Iterable [_T ], / ) -> typing_extensions .Self : ...
698698
699699class AbstractSet (Collection [_T_co ]):
700700 @abstractmethod
701- def __contains__ (self , x : object ) -> bool : ...
701+ def __contains__ (self , x : object , / ) -> bool : ...
702702 def _hash (self ) -> int : ...
703703 # Mixin methods
704704 @classmethod
705- def _from_iterable (cls , it : Iterable [_S ]) -> AbstractSet [_S ]: ...
706- def __le__ (self , other : AbstractSet [Any ]) -> bool : ...
707- def __lt__ (self , other : AbstractSet [Any ]) -> bool : ...
708- def __gt__ (self , other : AbstractSet [Any ]) -> bool : ...
709- def __ge__ (self , other : AbstractSet [Any ]) -> bool : ...
710- def __and__ (self , other : AbstractSet [Any ]) -> AbstractSet [_T_co ]: ...
711- def __or__ (self , other : AbstractSet [_T ]) -> AbstractSet [_T_co | _T ]: ...
712- def __sub__ (self , other : AbstractSet [Any ]) -> AbstractSet [_T_co ]: ...
713- def __xor__ (self , other : AbstractSet [_T ]) -> AbstractSet [_T_co | _T ]: ...
714- def __eq__ (self , other : object ) -> bool : ...
715- def isdisjoint (self , other : Iterable [Any ]) -> bool : ...
705+ def _from_iterable (cls , it : Iterable [_S ], / ) -> AbstractSet [_S ]: ...
706+ def __le__ (self , other : AbstractSet [Any ], / ) -> bool : ...
707+ def __lt__ (self , other : AbstractSet [Any ], / ) -> bool : ...
708+ def __gt__ (self , other : AbstractSet [Any ], / ) -> bool : ...
709+ def __ge__ (self , other : AbstractSet [Any ], / ) -> bool : ...
710+ def __and__ (self , other : AbstractSet [Any ], / ) -> AbstractSet [_T_co ]: ...
711+ def __or__ (self , other : AbstractSet [_T ], / ) -> AbstractSet [_T_co | _T ]: ...
712+ def __sub__ (self , other : AbstractSet [Any ], / ) -> AbstractSet [_T_co ]: ...
713+ def __xor__ (self , other : AbstractSet [_T ], / ) -> AbstractSet [_T_co | _T ]: ...
714+ def __eq__ (self , other : object , / ) -> bool : ...
715+ def isdisjoint (self , other : Iterable [Any ], / ) -> bool : ...
716716
717717class MutableSet (AbstractSet [_T ]):
718718 @abstractmethod
719- def add (self , value : _T ) -> None : ...
719+ def add (self , value : _T , / ) -> None : ...
720720 @abstractmethod
721- def discard (self , value : _T ) -> None : ...
721+ def discard (self , value : _T , / ) -> None : ...
722722 # Mixin methods
723723 def clear (self ) -> None : ...
724724 def pop (self ) -> _T : ...
725- def remove (self , value : _T ) -> None : ...
726- def __ior__ (self , it : AbstractSet [_T ]) -> typing_extensions .Self : ... # type: ignore[override,misc]
727- def __iand__ (self , it : AbstractSet [Any ]) -> typing_extensions .Self : ...
728- def __ixor__ (self , it : AbstractSet [_T ]) -> typing_extensions .Self : ... # type: ignore[override,misc]
729- def __isub__ (self , it : AbstractSet [Any ]) -> typing_extensions .Self : ...
725+ def remove (self , value : _T , / ) -> None : ...
726+ def __ior__ (self , it : AbstractSet [_T ], / ) -> typing_extensions .Self : ... # type: ignore[override,misc]
727+ def __iand__ (self , it : AbstractSet [Any ], / ) -> typing_extensions .Self : ...
728+ def __ixor__ (self , it : AbstractSet [_T ], / ) -> typing_extensions .Self : ... # type: ignore[override,misc]
729+ def __isub__ (self , it : AbstractSet [Any ], / ) -> typing_extensions .Self : ...
730730
731731class MappingView (Sized ):
732732 __slots__ = ("_mapping" ,)
@@ -736,36 +736,36 @@ class MappingView(Sized):
736736class ItemsView (MappingView , AbstractSet [tuple [_KT_co , _VT_co ]], Generic [_KT_co , _VT_co ]):
737737 def __init__ (self , mapping : SupportsGetItemViewable [_KT_co , _VT_co ]) -> None : ... # undocumented
738738 @classmethod
739- def _from_iterable (cls , it : Iterable [_S ]) -> set [_S ]: ...
740- def __and__ (self , other : Iterable [Any ]) -> set [tuple [_KT_co , _VT_co ]]: ...
741- def __rand__ (self , other : Iterable [_T ]) -> set [_T ]: ...
742- def __contains__ (self , item : tuple [object , object ]) -> bool : ... # type: ignore[override]
739+ def _from_iterable (cls , it : Iterable [_S ], / ) -> set [_S ]: ...
740+ def __and__ (self , other : Iterable [Any ], / ) -> set [tuple [_KT_co , _VT_co ]]: ...
741+ def __rand__ (self , other : Iterable [_T ], / ) -> set [_T ]: ...
742+ def __contains__ (self , item : tuple [object , object ], / ) -> bool : ... # type: ignore[override]
743743 def __iter__ (self ) -> Iterator [tuple [_KT_co , _VT_co ]]: ...
744- def __or__ (self , other : Iterable [_T ]) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
745- def __ror__ (self , other : Iterable [_T ]) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
746- def __sub__ (self , other : Iterable [Any ]) -> set [tuple [_KT_co , _VT_co ]]: ...
747- def __rsub__ (self , other : Iterable [_T ]) -> set [_T ]: ...
748- def __xor__ (self , other : Iterable [_T ]) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
749- def __rxor__ (self , other : Iterable [_T ]) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
744+ def __or__ (self , other : Iterable [_T ], / ) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
745+ def __ror__ (self , other : Iterable [_T ], / ) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
746+ def __sub__ (self , other : Iterable [Any ], / ) -> set [tuple [_KT_co , _VT_co ]]: ...
747+ def __rsub__ (self , other : Iterable [_T ], / ) -> set [_T ]: ...
748+ def __xor__ (self , other : Iterable [_T ], / ) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
749+ def __rxor__ (self , other : Iterable [_T ], / ) -> set [tuple [_KT_co , _VT_co ] | _T ]: ...
750750
751751class KeysView (MappingView , AbstractSet [_KT_co ]):
752752 def __init__ (self , mapping : Viewable [_KT_co ]) -> None : ... # undocumented
753753 @classmethod
754- def _from_iterable (cls , it : Iterable [_S ]) -> set [_S ]: ...
755- def __and__ (self , other : Iterable [Any ]) -> set [_KT_co ]: ...
756- def __rand__ (self , other : Iterable [_T ]) -> set [_T ]: ...
757- def __contains__ (self , key : object ) -> bool : ...
754+ def _from_iterable (cls , it : Iterable [_S ], / ) -> set [_S ]: ...
755+ def __and__ (self , other : Iterable [Any ], / ) -> set [_KT_co ]: ...
756+ def __rand__ (self , other : Iterable [_T ], / ) -> set [_T ]: ...
757+ def __contains__ (self , key : object , / ) -> bool : ...
758758 def __iter__ (self ) -> Iterator [_KT_co ]: ...
759- def __or__ (self , other : Iterable [_T ]) -> set [_KT_co | _T ]: ...
760- def __ror__ (self , other : Iterable [_T ]) -> set [_KT_co | _T ]: ...
761- def __sub__ (self , other : Iterable [Any ]) -> set [_KT_co ]: ...
762- def __rsub__ (self , other : Iterable [_T ]) -> set [_T ]: ...
763- def __xor__ (self , other : Iterable [_T ]) -> set [_KT_co | _T ]: ...
764- def __rxor__ (self , other : Iterable [_T ]) -> set [_KT_co | _T ]: ...
759+ def __or__ (self , other : Iterable [_T ], / ) -> set [_KT_co | _T ]: ...
760+ def __ror__ (self , other : Iterable [_T ], / ) -> set [_KT_co | _T ]: ...
761+ def __sub__ (self , other : Iterable [Any ], / ) -> set [_KT_co ]: ...
762+ def __rsub__ (self , other : Iterable [_T ], / ) -> set [_T ]: ...
763+ def __xor__ (self , other : Iterable [_T ], / ) -> set [_KT_co | _T ]: ...
764+ def __rxor__ (self , other : Iterable [_T ], / ) -> set [_KT_co | _T ]: ...
765765
766766class ValuesView (MappingView , Collection [_VT_co ]):
767767 def __init__ (self , mapping : SupportsGetItemViewable [Any , _VT_co ]) -> None : ... # undocumented
768- def __contains__ (self , value : object ) -> bool : ...
768+ def __contains__ (self , value : object , / ) -> bool : ...
769769 def __iter__ (self ) -> Iterator [_VT_co ]: ...
770770
771771# note for Mapping.get and MutableMapping.pop and MutableMapping.setdefault
0 commit comments