@lower_builtin(types.NumberClass, types.Any)
def number_constructor(context, builder, sig, args):
 if isinstance(sig.return_type, types.Array):
  impl = context.get_function(np.array, sig)
  return impl(builder, args)
 else:
  [val] = args
  [valty] = sig.args
  return context.cast(builder, val, valty, sig.return_type)

@ lower_builtin ( types . NumberClass , types . Any ) def number_constructor ( context , builder , sig , args ) : if isinstance ( sig . return_type , types . Array ) : impl = context . get_function ( np . array , sig ) return impl ( builder , args ) else : [ val ] = args [ valty ] = sig . args return context . cast ( builder , val , valty , sig . return_type )
call a number class .