docs: def has_types(self, types, all_=True):
          ''' Check whether the current component list matches all Stim types
          in the types argument.
  
          Args:
              types (Stim, list): a Stim class or iterable of Stim classes.
              all_ (bool): if True, all input types must match; if False, at
                  least one input type must match.
  
          Returns:
              True if all passed types match at least one Stim in the component
              list, otherwise False.
          '''
          func = all if all_ else any
          return func([self.get_stim(t) for t in listify(types)])