fixed type hints
This commit is contained in:
parent
47a3a04c12
commit
d483dfa068
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue