(self, value: Any)
| 67 | return value.value |
| 68 | |
| 69 | def to_python_value(self, value: Any) -> Any: |
| 70 | if value is None or isinstance(value, self.enum_type): |
| 71 | return value |
| 72 | |
| 73 | try: |
| 74 | return self.enum_type(value) |
| 75 | except ValueError: |
| 76 | raise ValueError(f"Database value {value} does not exist on Enum {self.enum_type}.") |
nothing calls this directly
no outgoing calls
no test coverage detected