Skip to content

Commit

Permalink
calrify type of pitch constructor argument
Browse files Browse the repository at this point in the history
Line 1926 says that the argument can be a Pitch too so the constructor should reflect that
  • Loading branch information
float3 authored Jan 31, 2025
1 parent 62b0bf4 commit 3bf73c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music21/pitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ class Pitch(prebase.ProtoM21Object):
}

def __init__(self,
name: str|int|float|None = None,
name: str|int|float|Pitch|None = None,
*,
step: StepName|None = None,
octave: int|None = None,
Expand Down

0 comments on commit 3bf73c5

Please sign in to comment.