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