Skip to content

Commit

Permalink
Fix(client): TTTK-52 Fixed type annotation for some methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Petzys committed Mar 3, 2024
1 parent 7b67182 commit 86764f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ async def listen(self):

await self._message_handler(message_type)

def get_player_by_uuid(self, uuid:str):
def get_player_by_uuid(self, uuid:str) -> Player:
for player in self._lobby_status:
if str(player.uuid) == uuid:
return player
return None

async def _preprocess_message(self, message:str):
async def _preprocess_message(self, message:str) -> str:
message_json = json.loads(message)

try:
Expand Down

0 comments on commit 86764f6

Please sign in to comment.