Skip to content

Commit

Permalink
Fix lint and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Jan 4, 2025
1 parent 12efcdf commit 0d533d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions music21/common/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ class OffsetSpecial(StrEnum):
* New in v7.
'''
AT_END: str = 'highestTime'
LOWEST_OFFSET: str = 'lowestOffset'
HIGHEST_OFFSET: str = 'highestOffset'
AT_END = 'highestTime'
LOWEST_OFFSET = 'lowestOffset'
HIGHEST_OFFSET = 'highestOffset'


class GatherSpanners(BooleanEnum):
Expand Down
9 changes: 7 additions & 2 deletions music21/romanText/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,12 @@ def translateSingleMeasureAtom(
m.coreInsert(self.currentOffsetInMeasure, rtt)
# environLocal.warn(f' Got an unknown token: {a}')

def processRTChord(self, a: rtObjects.RTChord, m: stream.Measure, currentOffset: OffsetQL) -> None:
def processRTChord(
self,
a: rtObjects.RTChord,
m: stream.Measure,
currentOffset: OffsetQL
) -> None:
'''
Process a single RTChord atom.
'''
Expand Down Expand Up @@ -894,7 +899,7 @@ def processRTChord(self, a: rtObjects.RTChord, m: stream.Measure, currentOffset:
rn.followsKeyChange = False
except roman.RomanNumeralException: # pragma: no cover
# environLocal.printDebug(f' cannot create RN from: {a.src}')
rn = note.Note() # create placeholder
rn = roman.RomanNumeral() # create placeholder

if self.pivotChordPossible is False:
# probably best to find duration
Expand Down

0 comments on commit 0d533d3

Please sign in to comment.