#NEWLINE# @ classmethod #NEWLINE# def sum( cls , targets ) : #NEWLINE# #INDENT# if ( len ( targets ) == 0 ) : #NEWLINE# #INDENT# from colordef import UNCOLORED_MARKER #NEWLINE# return SimpleColorValue ( colordef = UNCOLORED_MARKER , value = 0 ) #NEWLINE# #UNINDENT# c = targets [ 0 ] . colorvalue . __class__ #NEWLINE# return c . sum ( [ t . colorvalue for t in c ] )