#NEWLINE# def any( self , criterion = None , **kwargs ) : #NEWLINE# #INDENT# "Produce a proxied 'any' expression using EXISTS.\n\n        This expression will be a composed product\n        using the :meth:`.RelationshipProperty.Comparator.any`\n        and/or :meth:`.RelationshipProperty.Comparator.has`\n        operators of the underlying proxied attributes.\n\n        " #NEWLINE# if self . _value_is_scalar : #NEWLINE# #INDENT# value_expr = getattr ( self . target_class , self . value_attr ) . has ( criterion , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value_expr = getattr ( self . target_class , self . value_attr ) . any ( criterion , ** kwargs ) #NEWLINE# #UNINDENT# if ( kwargs . scalar and ( not self . _value_is_scalar ) ) : #NEWLINE# #INDENT# return self . _comparator . has ( value_expr ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _comparator . any ( value_expr )