from typing import List


def parse_notes(
    listNotes: List,
) -> List:

    """Given a list of music21 notes, rests and/or chordsd,
    group the tuplets as a single list, using the tuplets.type attribute.
    """
    
    result = []
    i = 0

    while i < len(listNotes):
        el = listNotes[i]
        tups = el.duration.tuplets
        if len(tups) == 0:
            result.append(el)
            i += 1
        else:
            t_group = [el]
            j = 1
            while el.duration.tuplets[0].type != "stop":
                el = listNotes[i + j]
                t_group.append(el)
                j += 1
            result.append(t_group)
            i += len(t_group)
    return result