def upgrade_to_float_no_complex(*types):
 for type in types:
  if (type in complex_types):
   raise TypeError('complex argument not supported')
 return upgrade_to_float(*types)

def upgrade_to_float_no_complex ( * types ) : for type in types : if ( type in complex_types ) : raise TypeError ( 'complex argument not supported' ) return upgrade_to_float ( * types )
dont accept complex .