From a882228458b5d09b5d17c536a8245697f0b75871 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 21 Dec 2020 16:03:56 +0100 Subject: [PATCH] Fix typing Signed-off-by: Yohann D'ANELLO --- squinnondation/squinnondation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squinnondation/squinnondation.py b/squinnondation/squinnondation.py index a5135c3..5a341a3 100644 --- a/squinnondation/squinnondation.py +++ b/squinnondation/squinnondation.py @@ -3,7 +3,7 @@ import socket from argparse import ArgumentParser -from typing import Any +from typing import Any, Tuple class Squinnondation: @@ -78,7 +78,7 @@ class Squirrel(Hazelnut): """ return self.socket.sendto(data, (client.address, client.port)) - def receive_raw_data(self) -> tuple[bytes, any]: + def receive_raw_data(self) -> Tuple[bytes, Any]: """ Receive a packet from the socket. TODO: Translate the address into the correct hazelnut.