Skip to content

Commit

Permalink
Add @OverRide decorator where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed May 18, 2024
1 parent edcc742 commit 2550a2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mcproto/interaction/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations
from typing_extensions import override

from mcproto.packets.packet import GameState, Packet

Expand Down Expand Up @@ -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})"

Expand Down Expand Up @@ -91,6 +93,7 @@ def msg(self) -> str:

return msg

@override
def __repr__(self) -> str:
return f"{self.__class__.__name__}({self.msg!r})"

Expand All @@ -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})"

0 comments on commit 2550a2a

Please sign in to comment.