Browse Source

Add type hint

pull/20/head
Richard Neumann 2 years ago
parent
commit
3019df58fc
  1. 2
      rcon/battleye/client.py

2
rcon/battleye/client.py

@ -44,7 +44,7 @@ class Client(BaseClient, socket_type=SOCK_DGRAM):
self.max_length = max_length
self.message_handler = message_handler
def handle_server_message(self, message: ServerMessage):
def handle_server_message(self, message: ServerMessage) -> None:
"""Handle the respective server message."""
with self._socket.makefile('wb') as file:
file.write(bytes(ServerMessageAck(message.seq)))

Loading…
Cancel
Save