Skip to content

Commit b186563

Browse files
authored
set difference strictly (#3886)
Fixes #1840
1 parent 98667b1 commit b186563

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/2/__builtin__.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -1077,8 +1077,8 @@ class set(MutableSet[_T], Generic[_T]):
10771077
def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ...
10781078
def __or__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
10791079
def __ior__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
1080-
def __sub__(self, s: AbstractSet[object]) -> Set[_T]: ...
1081-
def __isub__(self, s: AbstractSet[object]) -> Set[_T]: ...
1080+
def __sub__(self, s: AbstractSet[_T]) -> Set[_T]: ...
1081+
def __isub__(self, s: AbstractSet[_T]) -> Set[_T]: ...
10821082
def __xor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
10831083
def __ixor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
10841084
def __le__(self, s: AbstractSet[object]) -> bool: ...

stdlib/2and3/builtins.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -1077,8 +1077,8 @@ class set(MutableSet[_T], Generic[_T]):
10771077
def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ...
10781078
def __or__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
10791079
def __ior__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
1080-
def __sub__(self, s: AbstractSet[object]) -> Set[_T]: ...
1081-
def __isub__(self, s: AbstractSet[object]) -> Set[_T]: ...
1080+
def __sub__(self, s: AbstractSet[_T]) -> Set[_T]: ...
1081+
def __isub__(self, s: AbstractSet[_T]) -> Set[_T]: ...
10821082
def __xor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
10831083
def __ixor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
10841084
def __le__(self, s: AbstractSet[object]) -> bool: ...

0 commit comments

Comments
 (0)