From 2550a2a0dc62a88bd3e93975c8f4b660683f6d61 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 19 May 2024 01:12:09 +0200 Subject: [PATCH] Add @override decorator where necessary --- mcproto/interaction/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) 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})"