#NEWLINE# def remove_annotation( self , annotation ) : #NEWLINE# #INDENT# if ( not self . saved ) : #NEWLINE# #INDENT# raise Task . NotSaved ( 'Task needs to be saved to remove annotation' ) #NEWLINE# #UNINDENT# if isinstance ( annotation , TaskAnnotation ) : #NEWLINE# #INDENT# annotation = annotation [ 'description' ] #NEWLINE# #UNINDENT# self . backend . denotate_task ( self , annotation ) #NEWLINE# self . refresh ( only_fields = [ 'annotations' ] )