From 3b9a596ee134ccadfb9e75c15761d0099e1048c3 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 25 Dec 2022 22:46:36 +0100 Subject: [PATCH] Fix type not subscriptable for versions below 3.10 --- mcproto/packets/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcproto/packets/map.py b/mcproto/packets/map.py index 89c2abc7..894d027a 100644 --- a/mcproto/packets/map.py +++ b/mcproto/packets/map.py @@ -12,7 +12,7 @@ __all__ = ["PacketMap"] -class PacketMap(VersionMap[tuple[PacketDirection, GameState, int], type[Packet]]): +class PacketMap(VersionMap["tuple[PacketDirection, GameState, int]", "type[Packet]"]): SUPPORTED_VERSIONS: ClassVar[set[int]] = {757} COMPATIBLE_FALLBACK_VERSIONS: ClassVar[set[int]] = set() _SEARCH_DIR_QUALNAME: ClassVar[str] = "mcproto.packets"