#NEWLINE# def _consistent_with_check_( self , sub ) : #NEWLINE# #INDENT# if isinstance ( sub , UnionConstraint ) : #NEWLINE# #INDENT# return all ( ( is_consistent_with ( elem , self ) for elem in sub . union_types ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return any ( ( is_consistent_with ( sub , elem ) for elem in self . union_types ) )