Abjad / abjad

Abjad is a Python API for building LilyPond files. Use Abjad to make PDFs of music notation.
https://abjad.github.io
GNU General Public License v3.0
234 stars 41 forks source link

Conforms tuple to list before assignment to fix mypy error #1581

Closed nivlekp closed 2 months ago

nivlekp commented 3 months ago

The new mypy (1.9.0) complains that

/tmp/abjad/abjad/score.py:2580: error: Incompatible types in assignment (expression has type "tuple[NamedPitch, ...]", variable has type "list[NamedPitch]")  [assignment]

See this line for example

This PR is to fix this error.

Edit: Turns out there is another CI error with pytest as well. Hopefully my new commit fixes it.