diff --git a/pytest_mypy_plugins/item.py b/pytest_mypy_plugins/item.py index bfdf590..c5d3a89 100644 --- a/pytest_mypy_plugins/item.py +++ b/pytest_mypy_plugins/item.py @@ -472,7 +472,7 @@ def repr_failure( repr_file_location = ReprFileLocation( path=self.fspath, lineno=self.starting_lineno + excinfo.value.lineno, message="" # type: ignore ) - repr_tb_entry = TraceLastReprEntry( + repr_tb_entry = ReprEntry( exception_repr.reprtraceback.reprentries[-1].lines[1:], None, None, repr_file_location, "short" ) exception_repr.reprtraceback.reprentries = [repr_tb_entry]