Skip to content

Commit 587371e

Browse files
authored
Fix internal error (#154)
As per #154
1 parent b9437c8 commit 587371e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_mypy_plugins/item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def repr_failure(
458458
repr_file_location = ReprFileLocation(
459459
path=self.fspath, lineno=self.starting_lineno + excinfo.value.lineno, message="" # type: ignore
460460
)
461-
repr_tb_entry = TraceLastReprEntry(
461+
repr_tb_entry = ReprEntry(
462462
exception_repr.reprtraceback.reprentries[-1].lines[1:], None, None, repr_file_location, "short"
463463
)
464464
exception_repr.reprtraceback.reprentries = [repr_tb_entry]

0 commit comments

Comments
 (0)