Skip to content

Commit

Permalink
Update typing to be compatible with 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Iapetus-11 committed Jan 19, 2025
1 parent 6b10a24 commit 9695129
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/rcon_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import asyncio
import struct
import typing as t

from aiomcrcon.client import MessageType

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

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

if not header_data:
Expand Down

0 comments on commit 9695129

Please sign in to comment.