Skip to content

Commit d3221d4

Browse files
committed
remove self type check in Pitch __init__ function
1 parent 62b0bf4 commit d3221d4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

music21/pitch.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,9 +1923,6 @@ def __init__(self,
19231923
# No need for super().__init__() on protoM21Object
19241924
self._groups: base.Groups|None = None
19251925

1926-
if isinstance(name, type(self)):
1927-
name = name.nameWithOctave
1928-
19291926
# this should not be set, as will be updated when needed
19301927
self._step: StepName = defaults.pitchStep # this is only the pitch step
19311928

0 commit comments

Comments
 (0)