(self, value)
| 436 | return value |
| 437 | |
| 438 | def validate(self, value): |
| 439 | super().validate(value) |
| 440 | if value in self.empty_values: |
| 441 | return |
| 442 | if not value.is_finite(): |
| 443 | raise ValidationError( |
| 444 | self.error_messages["invalid"], |
| 445 | code="invalid", |
| 446 | params={"value": value}, |
| 447 | ) |
| 448 | |
| 449 | def widget_attrs(self, widget): |
| 450 | attrs = super().widget_attrs(widget) |
nothing calls this directly
no test coverage detected