MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / to_python_value

Method to_python_value

tortoise/fields/data.py:836–839  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

834 return value and str(value)
835
836 def to_python_value(self, value: Any) -> UUID | None:
837 if value is None or isinstance(value, UUID):
838 return value
839 return UUID(value)
840
841
842class BinaryField(Field[T_BINARY], bytes): # type: ignore

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected