Skip to content

Commit

Permalink
fix typehints for figuredBass.resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Jul 17, 2019
1 parent edafc68 commit ac4d224
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions music21/figuredBass/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from music21 import chord
from music21 import note
from music21 import stream
from typing import List
from typing import List, Optional

def augmentedSixthToDominant(augSixthPossib, augSixthType=None, augSixthChordInfo=None):
'''
Expand Down Expand Up @@ -740,7 +740,13 @@ def _resolvePitches(possibToResolve, howToResolve):
return tuple(resPitches)


def _unpackSeventhChord(seventhChord) -> List[pitch.Pitch]:
def _unpackSeventhChord(
seventhChord : 'music21.chord.Chord'
) -> List[Optional['music21.pitch.Pitch']]:
'''
Takes in a Chord and returns a list of Pitches (or Nones) corresponding
to the bass, root, fifth, seventh.
'''
bass = seventhChord.bass()
root = seventhChord.root()
third = seventhChord.getChordStep(3)
Expand Down

0 comments on commit ac4d224

Please sign in to comment.