StackSummary.extract() takes an Iterable (#6084)

This commit is contained in:
Zac Hatfield-Dodds
2021-09-28 17:24:54 +10:00
committed by GitHub
parent 4c0dccac0f
commit 7cc5eb2950

View File

@@ -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 = ...,