#NEWLINE# def _item_check( self , dim_vals , data ) : #NEWLINE# #INDENT# if ( ( self . type is not None ) and ( type ( data ) != self . type ) ) : #NEWLINE# #INDENT# raise AssertionError ( ( '%s must only contain one type of object, not both %s and %s.' % ( self . __class__ . __name__ , type ( data ) . __name__ , self . type . __name__ ) ) ) #NEWLINE# #UNINDENT# super ( UniformNdMapping , self ) . _item_check ( dim_vals , data )