From 9a71fdb93bddab8caf49e44a732a96bbf63568ca Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 8 Feb 2024 14:59:58 -0800 Subject: [PATCH] Fix a couple of incorrect type annotations h/t @justmobilize in https://github.com/adafruit/circuitpython/issues/8891 --- shared-bindings/synthio/LFO.c | 2 +- shared-bindings/synthio/Note.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-bindings/synthio/LFO.c b/shared-bindings/synthio/LFO.c index 6d0f24ab47919..a2c3af2d0dd41 100644 --- a/shared-bindings/synthio/LFO.c +++ b/shared-bindings/synthio/LFO.c @@ -62,7 +62,7 @@ STATIC const uint16_t triangle[] = {0, 32767, 0, -32767}; //| //| def __init__( //| self, -//| waveform: ReadableBuffer = None, +//| waveform: Optional[ReadableBuffer] = None, //| *, //| rate: BlockInput = 1.0, //| scale: BlockInput = 1.0, diff --git a/shared-bindings/synthio/Note.c b/shared-bindings/synthio/Note.c index 17169e4665bb7..3fc0d780b1c9a 100644 --- a/shared-bindings/synthio/Note.c +++ b/shared-bindings/synthio/Note.c @@ -65,7 +65,7 @@ static const mp_arg_t note_properties[] = { //| filter: Optional[Biquad] = None, //| ring_frequency: float = 0.0, //| ring_bend: float = 0.0, -//| ring_waveform: Optional[ReadableBuffer] = 0.0, +//| ring_waveform: Optional[ReadableBuffer] = None, //| ring_waveform_loop_start: int = 0, //| ring_waveform_loop_end: int = waveform_max_length, //| ) -> None: