#NEWLINE# @ lower_builtin ( types . NumberClass , types . Any ) #NEWLINE# def number_constructor( context , builder , sig , args ) : #NEWLINE# #INDENT# '\n    Call a number class, e.g. np.int32(...)\n    ' #NEWLINE# if isinstance ( sig . return_type , types . Array ) : #NEWLINE# #INDENT# impl = context . get_function ( numpy . array , sig ) #NEWLINE# return impl ( builder , args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# [ val ] = args #NEWLINE# [ valty ] = sig . args #NEWLINE# return context . cast ( builder , val , valty , sig . return_type )