def METHOD_NAME(self, list_id):
    """ Returns an iterator for the cards in a given list, filtered
    according to configuration values of trello.only_if_assigned and
    trello.also_unassigned """
    params = {'fields': 'name,idShort,shortLink,shortUrl,url,labels,due,desc'}
    if self.config.only_if_assigned:
        params['members'] = 'true'
        params['member_fields'] = 'username'
    cards = self.api_request(
        f"/1/lists/{list_id}/cards/open",
        **params)
    for card in cards:
        cardmembers = [m['username'] for m in card['members']]
        if (not self.config.only_if_assigned
                or self.config.only_if_assigned in cardmembers
                or (self.config.also_unassigned and not cardmembers)):
            yield card