Skip to content

Commit

Permalink
Fix too narrow type in Inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus committed Oct 5, 2022
1 parent e13bb71 commit 6f81192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crashtest/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@


class Inspector:
def __init__(self, exception: Exception):
def __init__(self, exception: BaseException):
self._exception = exception
self._frames: FrameCollection | None = None
self._outer_frames = None
self._inner_frames = None
self._previous_exception = exception.__context__

@property
def exception(self) -> Exception:
def exception(self) -> BaseException:
return self._exception

@property
Expand Down

0 comments on commit 6f81192

Please sign in to comment.