

def python_value(self, value):
    if isinstance(value, uuid.UUID):
        return value
    return (None if (value is None) else uuid.UUID(value))

dataset/ETHPy150Open coleifer/peewee/peewee.py UUIDField.python_value/original