Skip to content

Commit 55a52a8

Browse files
authored
Fix type annotation for traceback.StackSummary.from_list() to include FrameSummary items (#8244)
1 parent e648235 commit 55a52a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/traceback.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class StackSummary(list[FrameSummary]):
252252
capture_locals: bool = ...,
253253
) -> StackSummary: ...
254254
@classmethod
255-
def from_list(cls, a_list: list[_PT]) -> StackSummary: ...
255+
def from_list(cls, a_list: Iterable[FrameSummary | _PT]) -> StackSummary: ...
256256
if sys.version_info >= (3, 11):
257257
def format_frame_summary(self, frame_summary: FrameSummary) -> str: ...
258258

0 commit comments

Comments
 (0)