summaryrefslogtreecommitdiff
path: root/tests/functional/ext/code_style/cs_prefer_typing_namedtuple.py
blob: 7b0e7c58de8edb22dc4e79039644e7d3cf39278e (plain)
1
2
3
4
5
6
7
8
9
# pylint: disable=missing-docstring
from collections import namedtuple

NoteHash = namedtuple('NoteHash', ['Pitch', 'Duration', 'Offset'])  # [prefer-typing-namedtuple]

class SearchMatch(
    namedtuple('SearchMatch', ['els', 'index', 'iterator'])  # [prefer-typing-namedtuple]
):
    """Adapted from primer package `music21`."""