mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix type annotation for traceback.StackSummary.from_list() to include FrameSummary items (#8244)
This commit is contained in:
committed by
GitHub
parent
e6482354dd
commit
55a52a8b28
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user