Skip to content

Commit a279c46

Browse files
Update mypy/errorcodes.py: add category there
1 parent 2bf9c7b commit a279c46

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 f"<ErrorCode {self.code}>"
42+
return f"<ErrorCode {self.category}: {self.code}>"
4343

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

0 commit comments

Comments
 (0)