From 3bf73c5f4fb084d17d5c74312723cac4cca8ebd8 Mon Sep 17 00:00:00 2001 From: hill Date: Fri, 31 Jan 2025 19:11:42 +0000 Subject: [PATCH] calrify type of pitch constructor argument Line 1926 says that the argument can be a Pitch too so the constructor should reflect that --- music21/pitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music21/pitch.py b/music21/pitch.py index bccbed61d..88d894c96 100644 --- a/music21/pitch.py +++ b/music21/pitch.py @@ -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,