mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use Self in Python 2's array.__imul__ (#7167)
This commit is contained in:
@@ -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: Self, s: AbstractSet[_S]) -> Self: ...
|
||||
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: ...
|
||||
|
||||
@@ -54,7 +54,7 @@ class array(MutableSequence[_T], Generic[_T]):
|
||||
def __ge__(self, other: array[_T]) -> bool: ...
|
||||
def __gt__(self, other: array[_T]) -> bool: ...
|
||||
def __iadd__(self: Self, x: array[_T]) -> Self: ... # type: ignore[override]
|
||||
def __imul__(self, n: int) -> array[_T]: ...
|
||||
def __imul__(self: Self, n: int) -> Self: ...
|
||||
def __le__(self, other: array[_T]) -> bool: ...
|
||||
def __lt__(self, other: array[_T]) -> bool: ...
|
||||
def __mul__(self, n: int) -> array[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user