File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 68
68
except ModuleNotFoundError :
69
69
pass # No backport is installed
70
70
71
+
71
72
class Code :
72
73
"""Wrapper around Python code objects."""
73
74
@@ -935,17 +936,19 @@ def repr_excinfo(
935
936
while e is not None and id (e ) not in seen :
936
937
seen .add (id (e ))
937
938
if isinstance (e , ExceptionGroupTypes ):
938
- reprtraceback : Union [ReprTracebackNative , ReprTraceback ] = ReprTracebackNative (
939
+ reprtraceback : Union [
940
+ ReprTracebackNative , ReprTraceback
941
+ ] = ReprTracebackNative (
939
942
traceback .format_exception (
940
- type (excinfo .value ), excinfo .value , excinfo .traceback [0 ]._rawentry
943
+ type (excinfo .value ),
944
+ excinfo .value ,
945
+ excinfo .traceback [0 ]._rawentry ,
941
946
)
942
947
)
943
948
reprcrash : Optional [ReprFileLocation ] = None
944
949
elif excinfo_ :
945
950
reprtraceback = self .repr_traceback (excinfo_ )
946
- reprcrash = (
947
- excinfo_ ._getreprcrash () if self .style != "value" else None
948
- )
951
+ reprcrash = excinfo_ ._getreprcrash () if self .style != "value" else None
949
952
else :
950
953
# Fallback to native repr if the exception doesn't have a traceback:
951
954
# ExceptionInfo objects require a full traceback to work.
You can’t perform that action at this time.
0 commit comments