#NEWLINE# def visit_Index( self , expr ) : #NEWLINE# #INDENT# if isinstance ( expr . index . type , ScalarT ) : #NEWLINE# #INDENT# idx_types = [ expr . index . type ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( expr . index . type , TupleT ) : #NEWLINE# #INDENT# idx_types = expr . index . type . elt_types #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Yes ( ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not all ( ( isinstance ( t , ScalarT ) for t in idx_types ) ) ) : #NEWLINE# #INDENT# raise Yes ( )