Fix typing

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2020-12-21 16:03:56 +01:00
parent 169625f20c
commit a882228458
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 2 additions and 2 deletions

View File

@ -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.