From 4ebd19793e4e54ad3c593b96040cac4eefdbadd1 Mon Sep 17 00:00:00 2001 From: alemidev Date: Thu, 2 Dec 2021 20:15:57 +0100 Subject: [PATCH] type fix --- compiler/proto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/proto.py b/compiler/proto.py index 752bf35..c707672 100644 --- a/compiler/proto.py +++ b/compiler/proto.py @@ -5,7 +5,7 @@ import keyword import logging from pathlib import Path -from typing import List, Dict, Union +from typing import List, Dict, Union, Type as Class from aiocraft.mc.types import * @@ -52,7 +52,7 @@ TYPE_MAP = { "entityMetadata": EntityMetadata, } -def mctype(slot_type:Any) -> Type: +def mctype(slot_type:Any) -> Class[Type]: if isinstance(slot_type, str) and slot_type in TYPE_MAP: return TYPE_MAP[slot_type] if isinstance(slot_type, list):