@@ -35,7 +35,7 @@ class TracebackInfo(Generic[_CallpointT_co]):
3535 def from_traceback (cls , tb : TracebackType | None = None , limit : int | None = None ) -> Self : ...
3636 @classmethod
3737 def from_dict (cls , d : Mapping [Literal ["frames" ], list [_CallpointT_co ]]) -> Self : ...
38- def to_dict (self ) -> dict [str , list [dict [str , _CallpointT_co ]]]: ...
38+ def to_dict (self ) -> dict [str , list [dict [str , Any ]]]: ...
3939 def __len__ (self ) -> int : ...
4040 def __iter__ (self ) -> Iterator [_CallpointT_co ]: ...
4141 def get_formatted (self ) -> str : ...
@@ -52,7 +52,7 @@ class ExceptionInfo(Generic[_TracebackInfoT_co]):
5252 def from_exc_info (cls , exc_type : type [BaseException ], exc_value : BaseException , traceback : TracebackType ) -> Self : ...
5353 @classmethod
5454 def from_current (cls ) -> Self : ...
55- def to_dict (self ) -> dict [str , str | dict [str , list [FrameType ]]]: ...
55+ def to_dict (self ) -> dict [str , str | dict [str , list [dict [ str , Any ] ]]]: ...
5656 def get_formatted (self ) -> str : ...
5757 def get_formatted_exception_only (self ) -> str : ...
5858
@@ -84,11 +84,11 @@ def print_exception(
8484class ParsedException :
8585 exc_type : str
8686 exc_msg : str
87- frames : list [FrameType ]
87+ frames : list [Mapping [ str , Any ] ]
8888 def __init__ (self , exc_type_name : str , exc_msg : str , frames : Iterable [Mapping [str , Any ]] | None = None ) -> None : ...
8989 @property
9090 def source_file (self ) -> str | None : ...
91- def to_dict (self ) -> dict [str , str | list [FrameType ]]: ...
91+ def to_dict (self ) -> dict [str , str | list [Mapping [ str , Any ] ]]: ...
9292 def to_string (self ) -> str : ...
9393 @classmethod
9494 def from_string (cls , tb_str : str ) -> Self : ...
0 commit comments