def _validate_exact_type(self, value: Any) -> tuple[(Optional[float], list[Error])]:
    if isinstance(value, float):
        return (value, [])
    elif isinstance(value, int):
        return (float(value), [])
    else:
        return (None, [self._error('unexpected_type', {'expected_type': type_name('float')})])
def _validate_exact_type(self, value: Any) -> tuple[(Optional[float], list[Error])]:
    if isinstance(value, float):
        return (value, [])
    elif isinstance(value, int):
        return (float(value), [])
    else:
        return (None, [self._error('unexpected_type', {'expected_type': type_name('float')})])