Skip to content

Commit 1727f8b

Browse files
committed
mypy
1 parent ea48f35 commit 1727f8b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

music21/stream/makeNotation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,16 +1996,17 @@ def is_reexpressible(gn: note.GeneralNote) -> bool:
19961996
and (gn.isRest or gn.tie is not None or not onlyIfTied)
19971997
)
19981998

1999+
iterator: t.Iterable['music21.stream.Stream']
19992000
if recurse:
20002001
iterator = s.recurse(streamsOnly=True, includeSelf=True)
20012002
else:
20022003
iterator = [s]
20032004
for container in iterator:
20042005
reexpressible = [gn for gn in container.notesAndRests if is_reexpressible(gn)]
20052006
to_consolidate: t.List['music21.note.GeneralNote'] = []
2006-
partial_tuplet_sum = 0.0
2007+
partial_tuplet_sum: OffsetQL = 0.0
20072008
last_tuplet: t.Optional['music21.duration.Tuplet'] = None
2008-
completion_target: t.Optional[common.types.OffsetQL] = None
2009+
completion_target: t.Optional[OffsetQL] = None
20092010
for gn in reexpressible:
20102011
prev_gn = gn.previous(note.GeneralNote, activeSiteOnly=True)
20112012
if (

0 commit comments

Comments
 (0)