#NEWLINE# def as_sql( self , compiler , connection ) : #NEWLINE# #INDENT# ( sql , params ) = self . col . as_sql ( compiler , connection ) #NEWLINE# assert ( not params ) #NEWLINE# return ( connection . ops . date_trunc_sql ( self . lookup_type , sql ) , [ ] )