mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Backport more Self-related changes to Python 2 (#7166)
This commit is contained in:
@@ -708,9 +708,9 @@ 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: ...
|
||||
@overload
|
||||
def __sub__(self: set[str], s: AbstractSet[Text | None]) -> set[_T]: ...
|
||||
@overload
|
||||
@@ -720,7 +720,7 @@ class set(MutableSet[_T], Generic[_T]):
|
||||
@overload
|
||||
def __isub__(self, s: AbstractSet[_T | None]) -> set[_T]: ...
|
||||
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: ...
|
||||
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
||||
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
||||
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user