#NEWLINE# def _set_type( self , other_type = ANY_TYPE , signature = None ) : #NEWLINE# #INDENT# ':see Expression._set_type()' #NEWLINE# assert isinstance ( other_type , Type ) #NEWLINE# if ( other_type is None ) : #NEWLINE# #INDENT# signature = defaultdict ( list ) #NEWLINE# #UNINDENT# if ( not other_type . matches ( ENTITY_TYPE ) ) : #NEWLINE# #INDENT# raise IllegalTypeException ( self , other_type , ENTITY_TYPE ) #NEWLINE# #UNINDENT# signature [ self . variable . name ] . append ( self )