Use Self in Python 2's array.__imul__ (#7167)

This commit is contained in:
Alex Waygood
2022-02-08 18:54:16 +00:00
committed by GitHub
parent 5f830d023f
commit 4b75ecbbe2
2 changed files with 2 additions and 2 deletions

View File

@@ -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: ...

View File

@@ -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]: ...