fixed type hints

This commit is contained in:
əlemi 2022-01-04 15:37:43 +01:00
parent 47a3a04c12
commit d483dfa068

View file

@ -68,6 +68,7 @@ TYPE_MAP = {
"UUID": Ref('UUID'), "UUID": Ref('UUID'),
"string": Ref('String'), "string": Ref('String'),
"nbt": Ref('NBTTag'), "nbt": Ref('NBTTag'),
"optionalNbt": Ref('OptionalType(NBTTag)'),
"slot": Ref('Slot'), "slot": Ref('Slot'),
"position": Ref('Position'), "position": Ref('Position'),
"entityMetadataItem": Ref('EntityMetadataItem'), "entityMetadataItem": Ref('EntityMetadataItem'),
@ -93,8 +94,7 @@ HINT_MAP = {
"nbt": 'bytes', "nbt": 'bytes',
"slot": 'dict', "slot": 'dict',
"position": 'tuple', "position": 'tuple',
"entityMetadataItem": 'bytes', "entityMetadata": 'dict',
"entityMetadata": 'bytes',
} }
def _format_line(i, depth:int=0) -> str: def _format_line(i, depth:int=0) -> str: