#NEWLINE# def _shape_changed( self , name , old , new ) : #NEWLINE# #INDENT# if isinstance ( new , string_types ) : #NEWLINE# #INDENT# self . shape = Shape ( new ) #NEWLINE# #UNINDENT# if ( new . parent is not None ) : #NEWLINE# #INDENT# self . shape . _infer_type ( self . parent . data )