#NEWLINE# def __new__( cls , entities = None , * args , **kwargs ) : #NEWLINE# #INDENT# entity = ( entities [ ( - 1 ) ] if entities else None ) #NEWLINE# if isinstance ( entity , DeclarativeMeta ) : #NEWLINE# #INDENT# if hasattr ( entity , '__query__' ) : #NEWLINE# #INDENT# cls = entity . __query__ #NEWLINE# #UNINDENT# #UNINDENT# return super ( Query , cls ) . __new__ ( cls )