We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b737e43 commit 2bf9c7bCopy full SHA for 2bf9c7b
mypy/errorcodes.py
@@ -39,7 +39,7 @@ def __str__(self) -> str:
39
40
def __repr__(self) -> str:
41
"""This doesn't fulfill the goals of repr but it's better than the default view."""
42
- return self.code
+ return f"<ErrorCode {self.code}>"
43
44
def __eq__(self, other: object) -> bool:
45
if not isinstance(other, ErrorCode):
0 commit comments