mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Improve in-place BinOp methods for sets (#7161)
This commit is contained in:
@@ -923,13 +923,13 @@ class set(MutableSet[_T], Generic[_T]):
|
||||
def __contains__(self, __o: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
def __and__(self, __s: AbstractSet[object]) -> set[_T]: ...
|
||||
def __iand__(self, __s: AbstractSet[object]) -> set[_T]: ...
|
||||
def __iand__(self: Self, __s: AbstractSet[object]) -> Self: ...
|
||||
def __or__(self, __s: AbstractSet[_S]) -> set[_T | _S]: ...
|
||||
def __ior__(self, __s: AbstractSet[_S]) -> set[_T | _S]: ...
|
||||
def __ior__(self: Self, __s: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
|
||||
def __sub__(self, __s: AbstractSet[_T | None]) -> set[_T]: ...
|
||||
def __isub__(self, __s: AbstractSet[_T | None]) -> set[_T]: ...
|
||||
def __isub__(self: Self, __s: AbstractSet[object]) -> Self: ...
|
||||
def __xor__(self, __s: AbstractSet[_S]) -> set[_T | _S]: ...
|
||||
def __ixor__(self, __s: AbstractSet[_S]) -> set[_T | _S]: ...
|
||||
def __ixor__(self: Self, __s: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
|
||||
def __le__(self, __s: AbstractSet[object]) -> bool: ...
|
||||
def __lt__(self, __s: AbstractSet[object]) -> bool: ...
|
||||
def __ge__(self, __s: AbstractSet[object]) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user