use uuid type for uuid

This commit is contained in:
əlemi 2021-12-12 23:02:48 +01:00
parent c6bf20b9b6
commit f7911ca08f

View file

@ -205,7 +205,7 @@ class PositionType(Type):
Position = PositionType()
class UUIDType(Type):
pytype : type = str # TODO maybe use partial with uuid constructor?
pytype : type = uuid.UUID
MAX_SIZE : int = 16
def write(self, data:uuid.UUID, buffer:io.BytesIO, ctx:object=None):