From 7cc5eb29506992bad1e2c0948b847d349b7438e0 Mon Sep 17 00:00:00 2001 From: Zac Hatfield-Dodds Date: Tue, 28 Sep 2021 17:24:54 +1000 Subject: [PATCH] `StackSummary.extract()` takes an `Iterable` (#6084) --- stdlib/traceback.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/traceback.pyi b/stdlib/traceback.pyi index e071a3158..a6474a13a 100644 --- a/stdlib/traceback.pyi +++ b/stdlib/traceback.pyi @@ -146,7 +146,7 @@ class StackSummary(List[FrameSummary]): @classmethod def extract( cls, - frame_gen: Generator[Tuple[FrameType, int], None, None], + frame_gen: Iterable[Tuple[FrameType, int]], *, limit: int | None = ..., lookup_lines: bool = ...,