diff --git a/pytest_mypy/item.py b/pytest_mypy/item.py index 41f7896..6c51f43 100644 --- a/pytest_mypy/item.py +++ b/pytest_mypy/item.py @@ -301,11 +301,11 @@ def repr_failure(self, excinfo: ExceptionInfo) -> str: repr_file_location = ReprFileLocation(path=self.fspath, lineno=self.starting_lineno + excinfo.value.lineno, message='') - repr_tb_entry = TraceLastReprEntry(filelocrepr=repr_file_location, - lines=exception_repr.reprtraceback.reprentries[-1].lines[1:], - style='short', - reprlocals=None, - reprfuncargs=None) + repr_tb_entry = TraceLastReprEntry(exception_repr.reprtraceback.reprentries[-1].lines[1:], + None, + None, + repr_file_location, + 'short') exception_repr.reprtraceback.reprentries = [repr_tb_entry] return exception_repr else: