Skip to content

Commit

Permalink
Fix errisinstance typing (#12700)
Browse files Browse the repository at this point in the history
Fixes #12667
  • Loading branch information
reaganjlee authored Aug 9, 2024
1 parent 49eafce commit cb98538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/12667.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a regression where type change in `ExceptionInfo.errisinstance` caused `mypy` to fail.
2 changes: 1 addition & 1 deletion src/_pytest/_code/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

TracebackStyle = Literal["long", "short", "line", "no", "native", "value", "auto"]

EXCEPTION_OR_MORE = Union[Type[Exception], Tuple[Type[Exception], ...]]
EXCEPTION_OR_MORE = Union[Type[BaseException], Tuple[Type[BaseException], ...]]


class Code:
Expand Down

0 comments on commit cb98538

Please sign in to comment.