def _finalize_ufunc_signature(cres, args, return_type):
 if (return_type is None):
  if cres.objectmode:
   raise TypeError('return type must be specified for object mode')
  else:
   return_type = cres.signature.return_type
 assert (return_type != types.pyobject)
 return return_type(*args)

def _finalize_ufunc_signature ( cres , args , return_type ) : if ( return_type is None ) : if cres . objectmode : raise TypeError ( 'return type must be specified for object mode' ) else : return_type = cres . signature . return_type assert ( return_type != types . pyobject ) return return_type ( * args )
given a compilation result .