mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Delete many redundant method redefinitions (#6877)
This commit is contained in:
@@ -261,7 +261,6 @@ class int:
|
||||
def __le__(self, __x: int) -> bool: ...
|
||||
def __gt__(self, __x: int) -> bool: ...
|
||||
def __ge__(self, __x: int) -> bool: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __float__(self) -> float: ...
|
||||
def __int__(self) -> int: ...
|
||||
def __abs__(self) -> int: ...
|
||||
@@ -319,7 +318,6 @@ class float:
|
||||
def __ge__(self, __x: float) -> bool: ...
|
||||
def __neg__(self) -> float: ...
|
||||
def __pos__(self) -> float: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __int__(self) -> int: ...
|
||||
def __float__(self) -> float: ...
|
||||
def __abs__(self) -> float: ...
|
||||
@@ -350,7 +348,6 @@ class complex:
|
||||
def __ne__(self, __x: object) -> bool: ...
|
||||
def __neg__(self) -> complex: ...
|
||||
def __pos__(self) -> complex: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __abs__(self) -> float: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> bool: ...
|
||||
@@ -441,9 +438,7 @@ class str(Sequence[str]):
|
||||
def __mod__(self, __x: Any) -> str: ...
|
||||
def __mul__(self, __n: SupportsIndex) -> str: ...
|
||||
def __ne__(self, __x: object) -> bool: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __rmul__(self, n: SupportsIndex) -> str: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __getnewargs__(self) -> tuple[str]: ...
|
||||
|
||||
class bytes(ByteString):
|
||||
@@ -525,8 +520,6 @@ class bytes(ByteString):
|
||||
def maketrans(__frm: bytes, __to: bytes) -> bytes: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[int]: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __hash__(self) -> int: ...
|
||||
@overload
|
||||
def __getitem__(self, __i: SupportsIndex) -> int: ...
|
||||
@@ -629,8 +622,6 @@ class bytearray(MutableSequence[int], ByteString):
|
||||
def maketrans(__frm: bytes, __to: bytes) -> bytes: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[int]: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __repr__(self) -> str: ...
|
||||
__hash__: None # type: ignore[assignment]
|
||||
@overload
|
||||
def __getitem__(self, __i: SupportsIndex) -> int: ...
|
||||
@@ -807,7 +798,6 @@ class list(MutableSequence[_T], Generic[_T]):
|
||||
def sort(self, *, key: Callable[[_T], SupportsRichComparison], reverse: bool = ...) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
def __str__(self) -> str: ...
|
||||
__hash__: None # type: ignore[assignment]
|
||||
@overload
|
||||
def __getitem__(self, __i: SupportsIndex) -> _T: ...
|
||||
@@ -867,7 +857,6 @@ class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
def __iter__(self) -> Iterator[_KT]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def __reversed__(self) -> Iterator[_KT]: ...
|
||||
def __str__(self) -> str: ...
|
||||
__hash__: None # type: ignore[assignment]
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
|
||||
@@ -895,7 +884,6 @@ class set(MutableSet[_T], Generic[_T]):
|
||||
def __len__(self) -> int: ...
|
||||
def __contains__(self, __o: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __and__(self, __s: AbstractSet[object]) -> set[_T]: ...
|
||||
def __iand__(self, __s: AbstractSet[object]) -> set[_T]: ...
|
||||
def __or__(self, __s: AbstractSet[_S]) -> set[_T | _S]: ...
|
||||
@@ -925,7 +913,6 @@ class frozenset(AbstractSet[_T_co], Generic[_T_co]):
|
||||
def __len__(self) -> int: ...
|
||||
def __contains__(self, __o: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[_T_co]: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __and__(self, __s: AbstractSet[_T_co]) -> frozenset[_T_co]: ...
|
||||
def __or__(self, __s: AbstractSet[_S]) -> frozenset[_T_co | _S]: ...
|
||||
def __sub__(self, __s: AbstractSet[_T_co]) -> frozenset[_T_co]: ...
|
||||
@@ -965,7 +952,6 @@ class range(Sequence[int]):
|
||||
def __getitem__(self, __i: SupportsIndex) -> int: ...
|
||||
@overload
|
||||
def __getitem__(self, __s: slice) -> range: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __reversed__(self) -> Iterator[int]: ...
|
||||
|
||||
class property:
|
||||
@@ -1526,8 +1512,6 @@ class BaseException:
|
||||
if sys.version_info >= (3, 11):
|
||||
__note__: str | None
|
||||
def __init__(self, *args: object) -> None: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def with_traceback(self: _TBE, __tb: TracebackType | None) -> _TBE: ...
|
||||
|
||||
class GeneratorExit(BaseException): ...
|
||||
|
||||
Reference in New Issue
Block a user