(self, obj: t.Any, value: t.Any)
| 2766 | ) |
| 2767 | |
| 2768 | def validate(self, obj: t.Any, value: t.Any) -> G: |
| 2769 | if isinstance(value, int): |
| 2770 | value = float(value) |
| 2771 | if not isinstance(value, float): |
| 2772 | self.error(obj, value) |
| 2773 | return _validate_bounds(self, obj, value) # type:ignore[no-any-return] |
| 2774 | |
| 2775 | def from_string(self, s: str) -> G: |
| 2776 | if self.allow_none and s == "None": |
nothing calls this directly
no test coverage detected