@@ -1113,7 +1113,7 @@ def annotateIntervals(
11131113 sortPitches : bool = True ,
11141114 returnList : t .Literal [True ]
11151115 ) -> list [str ]:
1116- pass
1116+ ...
11171117
11181118 @overload
11191119 def annotateIntervals (
@@ -1124,7 +1124,7 @@ def annotateIntervals(
11241124 sortPitches : bool = True ,
11251125 returnList : t .Literal [False ] = False
11261126 ) -> None :
1127- pass
1127+ ...
11281128
11291129 @overload
11301130 def annotateIntervals (
@@ -1135,7 +1135,7 @@ def annotateIntervals(
11351135 sortPitches : bool = True ,
11361136 returnList : t .Literal [False ] = False
11371137 ) -> _ChordType :
1138- pass
1138+ ...
11391139
11401140 def annotateIntervals (
11411141 self : _ChordType ,
@@ -1271,29 +1271,32 @@ def areZRelations(self: _ChordType, other: _ChordType) -> bool:
12711271 return False
12721272
12731273 @overload
1274- def bass (self ,
1275- newbass : None = None ,
1276- * ,
1277- find : bool | None = None ,
1278- allow_add : bool = False ,
1279- ) -> pitch .Pitch :
1280- return self .pitches [0 ] # dummy until Astroid 1015 is fixed.
1274+ def bass (
1275+ self ,
1276+ newbass : None = None ,
1277+ * ,
1278+ find : bool | None = None ,
1279+ allow_add : bool = False ,
1280+ ) -> pitch .Pitch :
1281+ ...
12811282
12821283 @overload
1283- def bass (self ,
1284- newbass : str | pitch .Pitch | note .Note ,
1285- * ,
1286- find : bool | None = None ,
1287- allow_add : bool = False ,
1288- ) -> None :
1289- return None
1284+ def bass (
1285+ self ,
1286+ newbass : str | pitch .Pitch | note .Note ,
1287+ * ,
1288+ find : bool | None = None ,
1289+ allow_add : bool = False ,
1290+ ) -> None :
1291+ ...
12901292
1291- def bass (self ,
1292- newbass : None | str | pitch .Pitch | note .Note = None ,
1293- * ,
1294- find : bool | None = None ,
1295- allow_add : bool = False ,
1296- ) -> pitch .Pitch | None :
1293+ def bass (
1294+ self ,
1295+ newbass : None | str | pitch .Pitch | note .Note = None ,
1296+ * ,
1297+ find : bool | None = None ,
1298+ allow_add : bool = False ,
1299+ ) -> pitch .Pitch | None :
12971300 '''
12981301 Generally used to find and return the bass Pitch:
12991302
@@ -1481,12 +1484,11 @@ def canBeTonic(self) -> bool:
14811484 def closedPosition (
14821485 self : _ChordType ,
14831486 * ,
1484- forceOctave : int | None ,
1487+ forceOctave : int | None = None ,
14851488 inPlace : t .Literal [True ],
1486- leaveRedundantPitches = False
1489+ leaveRedundantPitches : bool = False
14871490 ) -> None :
1488- # astroid 1003
1489- return None
1491+ ...
14901492
14911493 @overload
14921494 def closedPosition (
@@ -1496,8 +1498,7 @@ def closedPosition(
14961498 inPlace : t .Literal [False ] = False ,
14971499 leaveRedundantPitches : bool = False
14981500 ) -> _ChordType :
1499- # astroid 1003
1500- return self
1501+ ...
15011502
15021503 def closedPosition (
15031504 self : _ChordType ,
@@ -2298,7 +2299,7 @@ def inversion(
22982299 testRoot : pitch .Pitch | None = None ,
22992300 transposeOnSet : bool = True
23002301 ) -> None :
2301- return None # dummy until Astroid 1015 is fixed
2302+ ...
23022303
23032304 @overload
23042305 def inversion (
@@ -2309,7 +2310,7 @@ def inversion(
23092310 testRoot : pitch .Pitch | None = None ,
23102311 transposeOnSet : bool = True
23112312 ) -> int :
2312- return - 1 # dummy until Astroid 1015 is fixed
2313+ ...
23132314
23142315 def inversion (
23152316 self ,
@@ -3799,15 +3800,15 @@ def root(self,
37993800 * ,
38003801 find : bool | None = None
38013802 ) -> pitch .Pitch :
3802- return self . pitches [ 0 ] # dummy until Astroid 1015 is fixed .
3803+ .. .
38033804
38043805 @overload
38053806 def root (self ,
38063807 newroot : str | pitch .Pitch | note .Note ,
38073808 * ,
38083809 find : bool | None = None
38093810 ) -> None :
3810- return None # dummy until Astroid 1015 is fixed .
3811+ .. .
38113812
38123813 def root (self ,
38133814 newroot : None | str | pitch .Pitch | note .Note = None ,
0 commit comments