We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d357aa7 commit 080d648Copy full SHA for 080d648
adafruit_ble_midi.py
@@ -20,6 +20,7 @@
20
from adafruit_ble.services import Service
21
22
try:
23
+ import typing # pylint: disable=unused-import
24
from circuitpython_typing import WriteableBuffer, ReadableBuffer
25
except ImportError:
26
pass
@@ -46,7 +47,7 @@ def __init__(self) -> None:
46
47
fixed_length=False,
48
)
49
- def bind(self, service: Service) -> _bleio.PacketBuffer:
50
+ def bind(self, service: MIDIService) -> _bleio.PacketBuffer:
51
"""Binds the characteristic to the given Service."""
52
bound_characteristic = super().bind(service)
53
return _bleio.PacketBuffer(bound_characteristic, buffer_size=4)
0 commit comments