mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Backport more Self-related changes to Python 2 (#7166)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Self
|
||||
from typing import Any, BinaryIO, Generic, Iterable, MutableSequence, Text, TypeVar, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
@@ -52,7 +53,7 @@ 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 __iadd__(self: Self, x: array[_T]) -> Self: ... # type: ignore[override]
|
||||
def __imul__(self, n: int) -> array[_T]: ...
|
||||
def __le__(self, other: array[_T]) -> bool: ...
|
||||
def __lt__(self, other: array[_T]) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user