Improve in-place BinOp methods for sets (#7161)

This commit is contained in:
Alex Waygood
2022-02-08 13:57:50 +00:00
committed by GitHub
parent a906d54742
commit b1b3471c76
3 changed files with 17 additions and 17 deletions

View File

@@ -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: ...