def validate_type_only(self, val):
<EOL>if not isinstance(val, self.definition):<EOL><INDENT>raise ValidationError('<STR_LIT>' %<EOL>(self.definition.__name__, generic_type_name(val)))<EOL><DEDENT>
Use this when you only want to validate that the type of an object
is correct, but not yet validate each field.