Fix typing
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
169625f20c
commit
a882228458
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from typing import Any
|
from typing import Any, Tuple
|
||||||
|
|
||||||
|
|
||||||
class Squinnondation:
|
class Squinnondation:
|
||||||
|
@ -78,7 +78,7 @@ class Squirrel(Hazelnut):
|
||||||
"""
|
"""
|
||||||
return self.socket.sendto(data, (client.address, client.port))
|
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.
|
Receive a packet from the socket.
|
||||||
TODO: Translate the address into the correct hazelnut.
|
TODO: Translate the address into the correct hazelnut.
|
||||||
|
|
Loading…
Reference in New Issue