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

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