Skip to content

Commit

Permalink
Fix internal error (typeddjango#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
griels authored Dec 18, 2024
1 parent 9e04f3b commit 8ccc150
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 @@ -458,7 +458,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 8ccc150

Please sign in to comment.