Skip to content

Commit efac0cb

Browse files
committed
do we need an assert?
1 parent 126e5ca commit efac0cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

music21/stream/makeNotation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,6 +2045,8 @@ def is_reexpressible(gn: note.GeneralNote) -> bool:
20452045
if gn.duration.tuplets:
20462046
partial_tuplet_sum = gn.quarterLength
20472047
last_tuplet = gn.duration.tuplets[0]
2048+
if t.TYPE_CHECKING:
2049+
assert last_tuplet is not None
20482050
completion_target = last_tuplet.totalTupletLength()
20492051
to_consolidate = [gn]
20502052
else:

0 commit comments

Comments
 (0)