def is_sequence_of_strings(obj):
 if (not cbook.iterable(obj)):
  return False
 if ((not isinstance(obj, np.ndarray)) and cbook.is_string_like(obj)):
  return False
 for o in obj:
  if (not cbook.is_string_like(o)):
   return False
 return True

def is_sequence_of_strings ( obj ) : if ( not cbook . iterable ( obj ) ) : return False if ( ( not isinstance ( obj , np . ndarray ) ) and cbook . is_string_like ( obj ) ) : return False for o in obj : if ( not cbook . is_string_like ( o ) ) : return False return True
returns true if *obj* is iterable and contains strings .