Skip to content

Commit

Permalink
do we need an assert?
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Aug 6, 2022
1 parent 126e5ca commit efac0cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions music21/stream/makeNotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,8 @@ def is_reexpressible(gn: note.GeneralNote) -> bool:
if gn.duration.tuplets:
partial_tuplet_sum = gn.quarterLength
last_tuplet = gn.duration.tuplets[0]
if t.TYPE_CHECKING:
assert last_tuplet is not None
completion_target = last_tuplet.totalTupletLength()
to_consolidate = [gn]
else:
Expand Down

0 comments on commit efac0cb

Please sign in to comment.