mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
stdlib: Add many missing dunder overrides (#7231)
This commit is contained in:
@@ -124,6 +124,7 @@ class TracebackException:
|
||||
cls: type[Self], exc: BaseException, *, limit: int | None = ..., lookup_lines: bool = ..., capture_locals: bool = ...
|
||||
) -> Self: ...
|
||||
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def format(self, *, chain: bool = ...) -> Generator[str, None, None]: ...
|
||||
def format_exception_only(self) -> Generator[str, None, None]: ...
|
||||
|
||||
@@ -173,6 +174,7 @@ class FrameSummary(Iterable[Any]):
|
||||
@overload
|
||||
def __getitem__(self, i: int) -> Any: ...
|
||||
def __iter__(self) -> Iterator[Any]: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def __len__(self) -> Literal[4]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user