@@ -20,15 +20,15 @@ class WeakSet(MutableSet[_T], Generic[_T]):
20
20
def __contains__ (self , item : object ) -> bool : ...
21
21
def __len__ (self ) -> int : ...
22
22
def __iter__ (self ) -> Iterator [_T ]: ...
23
- def __ior__ (self , other : Iterable [_S ]) -> WeakSet [ _S | _T ] : ...
23
+ def __ior__ (self : Self , other : Iterable [_T ]) -> Self : ... # type: ignore[override,misc]
24
24
def difference (self : Self , other : Iterable [_T ]) -> Self : ...
25
- def __sub__ (self : Self , other : Iterable [_T ]) -> Self : ...
26
- def difference_update (self , other : Iterable [_T ]) -> None : ...
27
- def __isub__ (self : Self , other : Iterable [_T ]) -> Self : ...
25
+ def __sub__ (self : Self , other : Iterable [Any ]) -> Self : ...
26
+ def difference_update (self , other : Iterable [Any ]) -> None : ...
27
+ def __isub__ (self : Self , other : Iterable [Any ]) -> Self : ...
28
28
def intersection (self : Self , other : Iterable [_T ]) -> Self : ...
29
- def __and__ (self : Self , other : Iterable [_T ]) -> Self : ...
30
- def intersection_update (self , other : Iterable [_T ]) -> None : ...
31
- def __iand__ (self : Self , other : Iterable [_T ]) -> Self : ...
29
+ def __and__ (self : Self , other : Iterable [Any ]) -> Self : ...
30
+ def intersection_update (self , other : Iterable [Any ]) -> None : ...
31
+ def __iand__ (self : Self , other : Iterable [Any ]) -> Self : ...
32
32
def issubset (self , other : Iterable [_T ]) -> bool : ...
33
33
def __le__ (self , other : Iterable [_T ]) -> bool : ...
34
34
def __lt__ (self , other : Iterable [_T ]) -> bool : ...
@@ -38,8 +38,8 @@ class WeakSet(MutableSet[_T], Generic[_T]):
38
38
def __eq__ (self , other : object ) -> bool : ...
39
39
def symmetric_difference (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
40
40
def __xor__ (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
41
- def symmetric_difference_update (self , other : Iterable [Any ]) -> None : ...
42
- def __ixor__ (self , other : Iterable [_S ]) -> WeakSet [ _S | _T ] : ...
41
+ def symmetric_difference_update (self , other : Iterable [_T ]) -> None : ...
42
+ def __ixor__ (self : Self , other : Iterable [_T ]) -> Self : ... # type: ignore[override,misc]
43
43
def union (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
44
44
def __or__ (self , other : Iterable [_S ]) -> WeakSet [_S | _T ]: ...
45
45
def isdisjoint (self , other : Iterable [_T ]) -> bool : ...
0 commit comments