mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
builtins.pyi: Update __iadd__() and imul() in class list (#2754)
Fixes #2711
This commit is contained in:
committed by
Sebastian Rittau
parent
9e5816a539
commit
ad803e1caa
@@ -907,11 +907,11 @@ class list(MutableSequence[_T], Generic[_T]):
|
||||
def __setslice__(self, start: int, stop: int, o: Sequence[_T]) -> None: ...
|
||||
def __delslice__(self, start: int, stop: int) -> None: ...
|
||||
def __add__(self, x: List[_T]) -> List[_T]: ...
|
||||
def __iadd__(self, x: Iterable[_T]) -> List[_T]: ...
|
||||
def __iadd__(self: _S, x: Iterable[_T]) -> _S: ...
|
||||
def __mul__(self, n: int) -> List[_T]: ...
|
||||
def __rmul__(self, n: int) -> List[_T]: ...
|
||||
if sys.version_info >= (3,):
|
||||
def __imul__(self, n: int) -> List[_T]: ...
|
||||
def __imul__(self: _S, n: int) -> _S: ...
|
||||
def __contains__(self, o: object) -> bool: ...
|
||||
def __reversed__(self) -> Iterator[_T]: ...
|
||||
def __gt__(self, x: List[_T]) -> bool: ...
|
||||
|
||||
@@ -907,11 +907,11 @@ class list(MutableSequence[_T], Generic[_T]):
|
||||
def __setslice__(self, start: int, stop: int, o: Sequence[_T]) -> None: ...
|
||||
def __delslice__(self, start: int, stop: int) -> None: ...
|
||||
def __add__(self, x: List[_T]) -> List[_T]: ...
|
||||
def __iadd__(self, x: Iterable[_T]) -> List[_T]: ...
|
||||
def __iadd__(self: _S, x: Iterable[_T]) -> _S: ...
|
||||
def __mul__(self, n: int) -> List[_T]: ...
|
||||
def __rmul__(self, n: int) -> List[_T]: ...
|
||||
if sys.version_info >= (3,):
|
||||
def __imul__(self, n: int) -> List[_T]: ...
|
||||
def __imul__(self: _S, n: int) -> _S: ...
|
||||
def __contains__(self, o: object) -> bool: ...
|
||||
def __reversed__(self) -> Iterator[_T]: ...
|
||||
def __gt__(self, x: List[_T]) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user