11import sys
2- from _typeshed import Self
32from collections .abc import Iterable , Iterator , MutableSet
43from typing import Any , Generic , TypeVar , overload
4+ from typing_extensions import Self
55
66if sys .version_info >= (3 , 9 ):
77 from types import GenericAlias
@@ -18,21 +18,21 @@ class WeakSet(MutableSet[_T], Generic[_T]):
1818 def __init__ (self , data : Iterable [_T ]) -> None : ...
1919 def add (self , item : _T ) -> None : ...
2020 def discard (self , item : _T ) -> None : ...
21- def copy (self : Self ) -> Self : ...
21+ def copy (self ) -> Self : ...
2222 def remove (self , item : _T ) -> None : ...
2323 def update (self , other : Iterable [_T ]) -> None : ...
2424 def __contains__ (self , item : object ) -> bool : ...
2525 def __len__ (self ) -> int : ...
2626 def __iter__ (self ) -> Iterator [_T ]: ...
27- def __ior__ (self : Self , other : Iterable [_T ]) -> Self : ... # type: ignore[override,misc]
28- def difference (self : Self , other : Iterable [_T ]) -> Self : ...
29- def __sub__ (self : Self , other : Iterable [Any ]) -> Self : ...
27+ def __ior__ (self , other : Iterable [_T ]) -> Self : ... # type: ignore[override,misc]
28+ def difference (self , other : Iterable [_T ]) -> Self : ...
29+ def __sub__ (self , other : Iterable [Any ]) -> Self : ...
3030 def difference_update (self , other : Iterable [Any ]) -> None : ...
31- def __isub__ (self : Self , other : Iterable [Any ]) -> Self : ...
32- def intersection (self : Self , other : Iterable [_T ]) -> Self : ...
33- def __and__ (self : Self , other : Iterable [Any ]) -> Self : ...
31+ def __isub__ (self , other : Iterable [Any ]) -> Self : ...
32+ def intersection (self , other : Iterable [_T ]) -> Self : ...
33+ def __and__ (self , other : Iterable [Any ]) -> Self : ...
3434 def intersection_update (self , other : Iterable [Any ]) -> None : ...
35- def __iand__ (self : Self , other : Iterable [Any ]) -> Self : ...
35+ def __iand__ (self , other : Iterable [Any ]) -> Self : ...
3636 def issubset (self , other : Iterable [_T ]) -> bool : ...
3737 def __le__ (self , other : Iterable [_T ]) -> bool : ...
3838 def __lt__ (self , other : Iterable [_T ]) -> bool : ...
@@ -43,7 +43,7 @@ class WeakSet(MutableSet[_T], Generic[_T]):
4343 def symmetric_difference (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
4444 def __xor__ (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
4545 def symmetric_difference_update (self , other : Iterable [_T ]) -> None : ...
46- def __ixor__ (self : Self , other : Iterable [_T ]) -> Self : ... # type: ignore[override,misc]
46+ def __ixor__ (self , other : Iterable [_T ]) -> Self : ... # type: ignore[override,misc]
4747 def union (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
4848 def __or__ (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
4949 def isdisjoint (self , other : Iterable [_T ]) -> bool : ...
0 commit comments