Skip to content

Commit 2bf9c7b

Browse files
Update mypy/errorcodes.py as suggested
Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>
1 parent b737e43 commit 2bf9c7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mypy/errorcodes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __str__(self) -> str:
3939

4040
def __repr__(self) -> str:
4141
"""This doesn't fulfill the goals of repr but it's better than the default view."""
42-
return self.code
42+
return f"<ErrorCode {self.code}>"
4343

4444
def __eq__(self, other: object) -> bool:
4545
if not isinstance(other, ErrorCode):

0 commit comments

Comments
 (0)