(self, value: Any)
| 381 | self.quant = Decimal("1" if decimal_places == 0 else f"1.{('0' * decimal_places)}") |
| 382 | |
| 383 | def to_python_value(self, value: Any) -> Decimal | None: |
| 384 | if value is not None: |
| 385 | value = Decimal(value).quantize(self.quant).normalize() |
| 386 | return value |
| 387 | |
| 388 | @property |
| 389 | def SQL_TYPE(self) -> str: # type: ignore |
nothing calls this directly
no outgoing calls
no test coverage detected