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

@@ -391,10 +391,10 @@ class MutableSet(AbstractSet[_T], Generic[_T]):
def clear(self) -> None: ...
def pop(self) -> _T: ...
def remove(self, value: _T) -> None: ...
def __ior__(self, s: AbstractSet[_S]) -> MutableSet[_T | _S]: ...
def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...
def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[_T | _S]: ...
def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...
def __ior__(self: Self, s: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
def __iand__(self: Self, s: AbstractSet[Any]) -> Self: ...
def __ixor__(self: Self, s: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
def __isub__(self: Self, s: AbstractSet[Any]) -> Self: ...
class MappingView(Sized):
def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocumented