#NEWLINE# def check_arg( self , arg , ignored , exception ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# np . dtype ( arg ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# raise exception ( ( '%s:%d %s must be a valid dtype' % ( self . file , self . line , arg ) ) )