Skip to content

Commit b341be0

Browse files
committed
Add __rsub__ method to AbstractSet
1 parent ba37bf7 commit b341be0

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

stdlib/builtins.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,7 @@ class set(MutableSet[_T]):
12671267
def __ior__(self, value: AbstractSet[_T], /) -> Self: ... # type: ignore[override,misc]
12681268
def __sub__(self, value: AbstractSet[_T | None], /) -> set[_T]: ... # type: ignore[override,misc]
12691269
def __isub__(self, value: AbstractSet[object], /) -> Self: ... # type: ignore[override,misc]
1270+
def __rsub__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ... # type: ignore[override,misc]
12701271
def __xor__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ... # type: ignore[override,misc]
12711272
def __ixor__(self, value: AbstractSet[_T], /) -> Self: ... # type: ignore[override,misc]
12721273
def __le__(self, value: AbstractSet[object], /) -> bool: ...

stdlib/multiprocessing/managers.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ if sys.version_info >= (3, 14):
162162
def __eq__(self, value: object, /) -> bool: ...
163163
def __rand__(self, value: AbstractSet[object], /) -> set[_T]: ...
164164
def __ror__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ... # type: ignore[misc]
165-
def __rsub__(self, value: AbstractSet[_T], /) -> set[_T]: ...
165+
def __rsub__(self, value: AbstractSet[_T], /) -> set[_T]: ... # type: ignore[override,misc]
166166
def __rxor__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ... # type: ignore[misc]
167167
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
168168

stdlib/typing.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ class AbstractSet(Collection[_T_co]):
707707
def __and__(self, other: Iterable[Any]) -> AbstractSet[_T_co]: ...
708708
def __or__(self, other: Iterable[_T]) -> AbstractSet[_T_co | _T]: ...
709709
def __sub__(self, other: Iterable[Any]) -> AbstractSet[_T_co]: ...
710+
def __rsub__(self, other: Iterable[_T]) -> AbstractSet[_T_co | _T]: ...
710711
def __xor__(self, other: Iterable[_T]) -> AbstractSet[_T_co | _T]: ...
711712
def __eq__(self, other: object) -> bool: ...
712713
def isdisjoint(self, other: Iterable[Any]) -> bool: ...

0 commit comments

Comments
 (0)