Skip to content

Commit 6f81192

Browse files
committed
Fix too narrow type in Inspector
1 parent e13bb71 commit 6f81192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crashtest/inspector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88

99
class Inspector:
10-
def __init__(self, exception: Exception):
10+
def __init__(self, exception: BaseException):
1111
self._exception = exception
1212
self._frames: FrameCollection | None = None
1313
self._outer_frames = None
1414
self._inner_frames = None
1515
self._previous_exception = exception.__context__
1616

1717
@property
18-
def exception(self) -> Exception:
18+
def exception(self) -> BaseException:
1919
return self._exception
2020

2121
@property

0 commit comments

Comments
 (0)