Skip to content

Commit 2bf9c7b

Browse files
Update mypy/errorcodes.py as suggested
Co-authored-by: Stanislav Terliakov <[email protected]>
1 parent b737e43 commit 2bf9c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)