mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 04:16:44 +08:00
Improve in-place BinOp methods for sets (#7161)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user