Untitled

 avatar
unknown
plain_text
a year ago
366 B
2
Indexable
class StringUUID(fields.UUID):
    def _validated(self, value) -> typing.Optional[str]:
        response = super()._validated(value)
        return str(response) if response else Noneclass StringUUID(fields.UUID):
    def _validated(self, value) -> typing.Optional[str]:
        response = super()._validated(value)
        return str(response) if response else None