diff --git a/music21/note.py b/music21/note.py index 466046399..358116bb0 100644 --- a/music21/note.py +++ b/music21/note.py @@ -1298,7 +1298,7 @@ def volume(self, value: None|volume.Volume|int|float): self._setVolume(value) @property - def storedInstrument(self) -> instrument.Instrument | None: + def storedInstrument(self) -> instrument.Instrument|None: ''' Get or set the :class:`~music21.instrument.Instrument` that should be used to play this note, overriding whatever @@ -1317,7 +1317,7 @@ def storedInstrument(self) -> instrument.Instrument | None: return self._storedInstrument @storedInstrument.setter - def storedInstrument(self, newValue: instrument.Instrument | None): + def storedInstrument(self, newValue: instrument.Instrument|None): if (newValue is not None and (not hasattr(newValue, 'classSet') or 'music21.instrument.Instrument' not in newValue.classSet)):