def merge_attrs(list_of_attrs):
 result = DEFAULT_ATTRS
 for attr in list_of_attrs:
  result = Attrs(color=(attr.color or result.color), bgcolor=(attr.bgcolor or result.bgcolor), bold=(attr.bold or result.bold), underline=(attr.underline or result.underline), italic=(attr.italic or result.italic), blink=(attr.blink or result.blink), reverse=(attr.reverse or result.reverse))
 return result

def merge_attrs ( list_of_attrs ) : result = DEFAULT_ATTRS for attr in list_of_attrs : result = Attrs ( color = ( attr . color or result . color ) , bgcolor = ( attr . bgcolor or result . bgcolor ) , bold = ( attr . bold or result . bold ) , underline = ( attr . underline or result . underline ) , italic = ( attr . italic or result . italic ) , blink = ( attr . blink or result . blink ) , reverse = ( attr . reverse or result . reverse ) ) return result
take a list of :class: .