def _resolve_clear_tags_in_list(items):
 result = []
 for item in items:
  if isinstance(item, ClearedValue):
   result = [item.value]
  else:
   result.append(item)
 return result

def _resolve_clear_tags_in_list ( items ) : result = [ ] for item in items : if isinstance ( item , ClearedValue ) : result = [ item . value ] else : result . append ( item ) return result
create a list from *items* .