#NEWLINE# def __contains__( self , other ) : #NEWLINE# #INDENT# symb = sympify ( self . contains ( other ) ) #NEWLINE# if ( not ( ( symb is S . true ) or ( symb is S . false ) ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'contains did not evaluate to a bool: %r' % symb ) ) #NEWLINE# #UNINDENT# return bool ( symb )