diff --git a/stdlib/traceback.pyi b/stdlib/traceback.pyi index 075c0f4b9..2a7ad1752 100644 --- a/stdlib/traceback.pyi +++ b/stdlib/traceback.pyi @@ -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]: ...