diff --git a/mcproto/interaction/exceptions.py b/mcproto/interaction/exceptions.py index 4e04cb59..5afe46c2 100644 --- a/mcproto/interaction/exceptions.py +++ b/mcproto/interaction/exceptions.py @@ -1,4 +1,5 @@ from __future__ import annotations +from typing_extensions import override from mcproto.packets.packet import GameState, Packet @@ -46,6 +47,7 @@ def msg(self) -> str: msg += f": {self.reason}" return msg + @override def __repr__(self) -> str: return f"{self.__class__.__name__}({self.msg!r})" @@ -91,6 +93,7 @@ def msg(self) -> str: return msg + @override def __repr__(self) -> str: return f"{self.__class__.__name__}({self.msg!r})" @@ -116,5 +119,6 @@ def msg(self) -> str: f" received: {self.received_decrypted_token!r}" ) + @override def __repr__(self) -> str: return f"{self.__class__.__name__}({self.msg!r})"