From 55a52a8b2878056a8506a66ae60487374520232b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 6 Jul 2022 12:00:35 +0200 Subject: [PATCH] Fix type annotation for `traceback.StackSummary.from_list()` to include `FrameSummary` items (#8244) --- stdlib/traceback.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/traceback.pyi b/stdlib/traceback.pyi index 16151f943..dbbcc824a 100644 --- a/stdlib/traceback.pyi +++ b/stdlib/traceback.pyi @@ -252,7 +252,7 @@ class StackSummary(list[FrameSummary]): capture_locals: bool = ..., ) -> StackSummary: ... @classmethod - def from_list(cls, a_list: list[_PT]) -> StackSummary: ... + def from_list(cls, a_list: Iterable[FrameSummary | _PT]) -> StackSummary: ... if sys.version_info >= (3, 11): def format_frame_summary(self, frame_summary: FrameSummary) -> str: ...