Skip to content

Commit 9695129

Browse files
committed
Update typing to be compatible with 3.9
1 parent 6b10a24 commit 9695129

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/rcon_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import asyncio
88
import struct
9+
import typing as t
910

1011
from aiomcrcon.client import MessageType
1112

@@ -37,7 +38,7 @@ async def read_bytes(cls, reader: asyncio.StreamReader, n: int) -> bytes:
3738
return out
3839

3940
@classmethod
40-
async def read_packet(cls, reader: asyncio.StreamReader) -> tuple[int, int, bytes] | None:
41+
async def read_packet(cls, reader: asyncio.StreamReader) -> t.Tuple[int, int, bytes] | None:
4142
header_data = await cls.read_bytes(reader, cls.packet_HEADER_SIZE)
4243

4344
if not header_data:

0 commit comments

Comments
 (0)