@@ -177,7 +177,7 @@ def __deepcopy__(self: _ChordBaseType, memo=None) -> _ChordBaseType:
177177 # after copying, if a Volume exists, it is linked to the old object
178178 # look at _volume so as not to create object if not already there
179179 # noinspection PyProtectedMember
180- for d in new ._notes :
180+ for d in new ._notes : # pylint: disable=no-member
181181 # if .volume is called, a new Volume obj will be created
182182 if d .hasVolumeInformation ():
183183 d .volume .client = new # update with new instance
@@ -379,6 +379,9 @@ def remove(self, removeItem):
379379 except ValueError :
380380 raise ValueError ('Chord.remove(x), x not in chord' )
381381
382+ @property
383+ def notes (self ) -> t .Tuple [note .NotRest , ...]:
384+ return ()
382385
383386 @property
384387 def tie (self ):
@@ -5182,7 +5185,7 @@ def multisetCardinality(self):
51825185 return len (self .pitchClasses )
51835186
51845187 @property
5185- def notes (self ):
5188+ def notes (self ) -> t . Tuple [ note . Note , ...] :
51865189 '''
51875190 Return a tuple (immutable) of the notes contained in the chord.
51885191
@@ -5244,7 +5247,7 @@ def notes(self):
52445247 return tuple (self ._notes )
52455248
52465249 @notes .setter
5247- def notes (self , newNotes ) :
5250+ def notes (self , newNotes : t . Iterable [ note . Note ]) -> None :
52485251 '''
52495252 sets notes to an iterable of Note objects
52505253 '''
@@ -5805,9 +5808,9 @@ def scaleDegrees(self):
58055808 '''
58065809 from music21 import scale
58075810 # roman numerals have this built in as the key attribute
5808- if hasattr (self , 'key' ) and self .key is not None :
5811+ if hasattr (self , 'key' ) and self .key is not None : # pylint: disable=no-member
58095812 # Key is a subclass of scale.DiatonicScale
5810- sc = self .key
5813+ sc = self .key # pylint: disable=no-member
58115814 else :
58125815 sc = self .getContextByClass (scale .Scale , sortByCreationTime = True )
58135816 if sc is None :
0 commit comments