Skip to content

Commit

Permalink
fix lint / flake
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Jun 5, 2023
1 parent 149516f commit 425ec69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions music21/musicxml/testPrimitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -20064,6 +20064,8 @@ def get(contentRequest: str) -> str:
return beams02
elif contentRequest in ['tremolos']:
return tremoloTest
else:
raise ValueError(f'cannot find contentRequest: {contentRequest}')


# ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion music21/musicxml/xmlToM21.py
Original file line number Diff line number Diff line change
Expand Up @@ -3451,7 +3451,7 @@ def xmlToRest(self, mxRest):
isFullMeasure = mxRestTag.get('measure')
if isFullMeasure == 'yes':
# fullMeasureRest is now just a counting/debug tool.
if not (restType := strippedText(mxRest.find('type'))) or restType in ('whole', 'breve'):
if not (rType := strippedText(mxRest.find('type'))) or rType in ('whole', 'breve'):
# force full measure rest...
self.fullMeasureRest = True
r.fullMeasure = True
Expand Down

0 comments on commit 425ec69

Please sign in to comment.