Skip to content

Commit 080d648

Browse files
committed
resolves #8 Missing Type Annotations
1 parent d357aa7 commit 080d648

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ble_midi.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from adafruit_ble.services import Service
2121

2222
try:
23+
import typing # pylint: disable=unused-import
2324
from circuitpython_typing import WriteableBuffer, ReadableBuffer
2425
except ImportError:
2526
pass
@@ -46,7 +47,7 @@ def __init__(self) -> None:
4647
fixed_length=False,
4748
)
4849

49-
def bind(self, service: Service) -> _bleio.PacketBuffer:
50+
def bind(self, service: MIDIService) -> _bleio.PacketBuffer:
5051
"""Binds the characteristic to the given Service."""
5152
bound_characteristic = super().bind(service)
5253
return _bleio.PacketBuffer(bound_characteristic, buffer_size=4)

0 commit comments

Comments
 (0)