Skip to content

Commit

Permalink
Fix internal error (#154) (#156)
Browse files Browse the repository at this point in the history
As per #154

Co-authored-by: sobolevn <mail@sobolevn.me>
  • Loading branch information
griels and sobolevn authored Dec 21, 2024
1 parent c26355c commit 6bc5efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_mypy_plugins/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6bc5efe

Please sign in to comment.