def valid_anytype(val):
 for validator in VALIDATOR.values():
  if (validator == valid_anytype):
   continue
  try:
   if validator(val):
    return True
  except NotValid:
   pass
 if isinstance(val, type):
  return True
 raise NotValid('AnyType')

def valid_anytype ( val ) : for validator in VALIDATOR . values ( ) : if ( validator == valid_anytype ) : continue try : if validator ( val ) : return True except NotValid : pass if isinstance ( val , type ) : return True raise NotValid ( 'AnyType' )
goes through all known type validators .