Add slice overload to traceback.FrameSummary.__getitem__ (#12783)

This commit is contained in:
Brian Schubert
2024-10-11 18:42:49 -04:00
committed by GitHub
parent f625e92ae5
commit 28f0d6899b

View File

@@ -276,6 +276,8 @@ class FrameSummary(Iterable[Any]):
def __getitem__(self, pos: Literal[3]) -> str | None: ...
@overload
def __getitem__(self, pos: int) -> Any: ...
@overload
def __getitem__(self, pos: slice) -> tuple[Any, ...]: ...
def __iter__(self) -> Iterator[Any]: ...
def __eq__(self, other: object) -> bool: ...
def __len__(self) -> Literal[4]: ...