mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Add slice overload to traceback.FrameSummary.__getitem__ (#12783)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user