mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Improve some in-place BinOp methods (#7149)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import Self
|
||||
from typing import BinaryIO, Generic, Iterable, MutableSequence, TypeVar, Union, overload
|
||||
from typing_extensions import Literal, SupportsIndex
|
||||
|
||||
@@ -61,8 +62,8 @@ class array(MutableSequence[_T], Generic[_T]):
|
||||
def __add__(self, __x: array[_T]) -> array[_T]: ...
|
||||
def __ge__(self, __other: array[_T]) -> bool: ...
|
||||
def __gt__(self, __other: array[_T]) -> bool: ...
|
||||
def __iadd__(self, __x: array[_T]) -> array[_T]: ... # type: ignore # Overrides MutableSequence
|
||||
def __imul__(self, __n: int) -> array[_T]: ...
|
||||
def __iadd__(self: Self, __x: array[_T]) -> Self: ... # type: ignore # Overrides MutableSequence
|
||||
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