Skip to content

Commit deaac91

Browse files
committed
Typing fixes
1 parent 7ba62bb commit deaac91

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

shared-bindings/synthio/LFO.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ STATIC const uint16_t triangle[] = {0, 32767, 0, -32767};
6262
//|
6363
//| def __init__(
6464
//| self,
65-
//| waveform: ReadableBuffer = None,
65+
//| waveform: ReadableBuffer,
6666
//| *,
6767
//| rate: BlockInput = 1.0,
6868
//| scale: BlockInput = 1.0,

shared-bindings/synthio/Note.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static const mp_arg_t note_properties[] = {
6565
//| filter: Optional[Biquad] = None,
6666
//| ring_frequency: float = 0.0,
6767
//| ring_bend: float = 0.0,
68-
//| ring_waveform: Optional[ReadableBuffer] = 0.0,
68+
//| ring_waveform: Optional[ReadableBuffer] = None,
6969
//| ring_waveform_loop_start: int = 0,
7070
//| ring_waveform_loop_end: int = waveform_max_length,
7171
//| ) -> None:

tools/test-stubs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
rm -rf test-stubs
33
python3 -m venv test-stubs
44
. test-stubs/bin/activate
5-
pip install mypy isort black adafruit-circuitpython-typing wheel build
5+
pip install mypy isort black pip install adafruit-circuitpython-typing@git+https://github.com/justmobilize/Adafruit_CircuitPython_Typing@typing-fixes wheel build
66
rm -rf circuitpython-stubs .mypy_cache
77
make stubs
88
pip install --force-reinstall circuitpython-stubs/dist/circuitpython-stubs-*.tar.gz
9+
export MYPYPATH=circuitpython-stubs/
910
mypy -c 'import busio; b: busio.I2C; b.writeto(0x30, b"")'
1011
! mypy -c 'import busio; b: busio.I2C; b.readfrom_into(0x30, b"")'
1112
! mypy -c 'import busio; b: busio.I2C; b.write(0x30, b"")'

0 commit comments

Comments
 (0)